Do not fail to render checkout html if there is no payment_method

This commit is contained in:
Cédric Krier
2019-10-26 18:26:21 +02:00
parent 0c55c3e698
commit 2f837bb4ec
+1 -1
View File
@@ -113,7 +113,7 @@
}
});
} else {
card = {payment_method: '${data['payment_method']}'}
card = {payment_method: '${data.get('payment_method', '')}'}
}
var cardButton = document.getElementById('card-button');