diff --git a/addons/payment_adyen/static/src/js/payment_form.js b/addons/payment_adyen/static/src/js/payment_form.js index 58f11d3c354..0721c14c661 100644 --- a/addons/payment_adyen/static/src/js/payment_form.js +++ b/addons/payment_adyen/static/src/js/payment_form.js @@ -47,8 +47,7 @@ paymentForm.include({ // Extract and deserialize the inline form values. const radio = document.querySelector('input[name="o_payment_radio"]:checked'); - const inlineFormValues = JSON.parse(radio.dataset['inlineFormValues']); - const formatted_amount = inlineFormValues['formatted_amount']; + const inlineFormValues = JSON.parse(radio.dataset['adyenInlineFormValues']); const formattedAmount = inlineFormValues['formatted_amount']; // Create the checkout object if not already done for another payment method. diff --git a/addons/payment_adyen/views/payment_form_templates.xml b/addons/payment_adyen/views/payment_form_templates.xml index 474e8af59c2..6c1e6811256 100644 --- a/addons/payment_adyen/views/payment_form_templates.xml +++ b/addons/payment_adyen/views/payment_form_templates.xml @@ -18,7 +18,7 @@