Skip to content

Commit

Permalink
Update admin UI
Browse files Browse the repository at this point in the history
ISSUE: ADCRSET1G-19
  • Loading branch information
Tamara committed Apr 17, 2024
1 parent bb08ffa commit 1f427bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/views/backend/_resources/js/PaymentsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -788,6 +789,7 @@ if (!window.AdyenFE) {
config.additionalData = {
showLogos: true,
singleClickPayment: true,
clickToPay: true,
sendBasket: true,
installments: false,
installmentAmounts: false,
Expand Down Expand Up @@ -1086,6 +1088,7 @@ if (!window.AdyenFE) {
...generator.createFormFields([
getRadioField('creditCardFields', 'showLogos'),
getRadioField('creditCardFields', 'singleClickPayment'),
getRadioField('creditCardFields', 'clickToPay'),
getRadioField('creditCardFields', 'sendBasket')
])
);
Expand Down Expand Up @@ -1388,6 +1391,7 @@ if (!window.AdyenFE) {
'description',
'showLogos',
'singleClickPayment',
'clickToPay',
'merchantName',
'sendBasket',
'gatewayMerchantId',
Expand Down Expand Up @@ -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']));
Expand Down
4 changes: 4 additions & 0 deletions Resources/views/backend/_resources/lang/en.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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? <a href=\"https://www.adyen.com/knowledge-hub/click-to-pay\" target=\"_blank\"><span>Learn more</span></a>"
},
"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. <a href=\"https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3\" target=\"_blank\"><span>Learn more</span></a>"
Expand Down

0 comments on commit 1f427bd

Please sign in to comment.