changeset 3f218107db3e in modules/account_payment_stripe:default
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset;node=3f218107db3e
description:
        Do not fail to render checkout html if there is no payment_method
diffstat:

 checkout.html |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 05a3a20f3607 -r 3f218107db3e checkout.html
--- a/checkout.html     Thu Oct 10 18:45:36 2019 +0200
+++ b/checkout.html     Sat Oct 26 18:26:21 2019 +0200
@@ -113,7 +113,7 @@
                     }
                 });
             } else {
-                card = {payment_method: '${data['payment_method']}'}
+                card = {payment_method: '${data.get('payment_method', '')}'}
             }
 
             var cardButton = document.getElementById('card-button');

Reply via email to