diff --git a/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js b/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js index d571b2101..4bc2c228d 100644 --- a/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js +++ b/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js @@ -45,6 +45,14 @@ if ( ] = window.googleMerchantID; } +$('body').on('checkout:updateCheckoutView', (event, data) => { + if (data.order.orderEmail) { + const { clickToPayConfiguration } = + store.checkoutConfiguration.paymentMethodsConfiguration.card; + clickToPayConfiguration.shopperEmail = data.order.orderEmail; + } +}); + // Submit the payment $('button[value="submit-payment"]').on('click', () => { if (store.paypalTerminatedEarly) {