diff --git a/Resources/views/backend/_resources/js/PaymentsController.js b/Resources/views/backend/_resources/js/PaymentsController.js index 6e283c15..0f8438a8 100755 --- a/Resources/views/backend/_resources/js/PaymentsController.js +++ b/Resources/views/backend/_resources/js/PaymentsController.js @@ -262,6 +262,7 @@ if (!window.AdyenFE) { * @typedef AdditionalDataConfig * @property {boolean?} showLogos * @property {boolean?} singleClickPayment + * @property {boolean?} clickToPay * @property {boolean?} sendBasket * @property {boolean?} installments * @property {boolean?} installmentAmounts @@ -788,6 +789,7 @@ if (!window.AdyenFE) { config.additionalData = { showLogos: true, singleClickPayment: true, + clickToPay: true, sendBasket: true, installments: false, installmentAmounts: false, @@ -1086,6 +1088,7 @@ if (!window.AdyenFE) { ...generator.createFormFields([ getRadioField('creditCardFields', 'showLogos'), getRadioField('creditCardFields', 'singleClickPayment'), + getRadioField('creditCardFields', 'clickToPay'), getRadioField('creditCardFields', 'sendBasket') ]) ); @@ -1388,6 +1391,7 @@ if (!window.AdyenFE) { 'description', 'showLogos', 'singleClickPayment', + 'clickToPay', 'merchantName', 'sendBasket', 'gatewayMerchantId', @@ -1592,7 +1596,7 @@ if (!window.AdyenFE) { if (changedMethod.paymentType === 'creditOrDebitCard') { result.push( - ...validateRequiredField(['showLogos', 'singleClickPayment', 'sendBasket', 'installmentAmounts']) + ...validateRequiredField(['showLogos', 'singleClickPayment', 'clickToPay', 'sendBasket', 'installmentAmounts']) ); } else if (changedMethod.code === 'applepay') { result.push(...validateRequiredField(['merchantId', 'merchantName'])); diff --git a/Resources/views/backend/_resources/lang/en.json b/Resources/views/backend/_resources/lang/en.json old mode 100644 new mode 100755 index e3627bf3..73636d34 --- a/Resources/views/backend/_resources/lang/en.json +++ b/Resources/views/backend/_resources/lang/en.json @@ -295,6 +295,10 @@ "label": "Enable single click payments", "description": "Do you want shoppers to have the option to save their card details for future payments?" }, + "clickToPay": { + "label": "Enable Click to Pay", + "description": "Do you want shoppers to have the option to use Click to Pay? Learn more" + }, "sendBasket": { "label": "Enable L2/L3 data", "description": "Do you want to send additional data to shopper's card statements? This is useful for companies to track corporate card usage when a single card can have multiple users. Learn more"