Skip to content

Commit

Permalink
Merge pull request #1131 from Adyen/release/24.3.1
Browse files Browse the repository at this point in the history
Release/24.3.1
  • Loading branch information
shanikantsingh authored Aug 1, 2024
2 parents ae4aad6 + 5c9924f commit 756e0b4
Show file tree
Hide file tree
Showing 38 changed files with 177 additions and 157 deletions.
2 changes: 1 addition & 1 deletion cartridges/app_adyen_SFRA/.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app_adyen_SFRA</name>
<comment>v24.3.0</comment>
<comment>v24.3.1</comment>
<projects></projects>
<buildSpec>
<buildCommand>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ function displaySelectedMethod(type) {
store.brand = (_document$querySelect2 = document.querySelector("#component_".concat(type, " .brand"))) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.value;
}
function displayValidationErrors() {
store.selectedPayment.node.showValidation();
var _store$selectedMethod;
if ((_store$selectedMethod = store.selectedMethod) !== null && _store$selectedMethod !== void 0 && _store$selectedMethod.node) {
store.selectedPayment.node.showValidation();
}
return false;
}
var selectedMethods = {};
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions cartridges/app_adyen_SFRA/cartridge/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ var Store = (_class = /*#__PURE__*/function () {
}, {
key: "updateSelectedPayment",
value: function updateSelectedPayment(method, key, val) {
if (!this.componentsObj[method]) {
this.componentsObj[method] = {};
}
this.componentsObj[method][key] = val;
}
}]);
Expand Down
2 changes: 1 addition & 1 deletion cartridges/bm_adyen/.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bm_adyen</name>
<comment>v24.3.0</comment>
<comment>v24.3.1</comment>
<projects></projects>
<buildSpec>
<buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion cartridges/int_adyen_SFRA/.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>int_adyen_SFRA</name>
<comment>v24.3.0</comment>
<comment>v24.3.1</comment>
<projects></projects>
<buildSpec>
<buildCommand>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ module.exports = {
EXTERNAL_PLATFORM_VERSION: 'SFRA',
APPLE_DOMAIN_URL: '/.well-known/apple-developer-merchantid-domain-association',
CHECKOUT_COMPONENT_VERSION: '5.65.0',
VERSION: '24.3.0'
VERSION: '24.3.1'
};
2 changes: 1 addition & 1 deletion cartridges/int_custom_cartridge/.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>int_custom_cartridge</name>
<comment>v24.3.0</comment>
<comment>v24.3.1</comment>
<projects></projects>
<buildSpec>
<buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app_adyen_SFRA",
"version": "24.3.0",
"version": "24.3.1",
"description": "Adyen's official cartridge for SFRA",
"main": "index.js",
"paths": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ function getGiftCardConfig() {
async: false,
success: (data) => {
giftcardBalance = data.balance;
document.querySelector('button[value="submit-payment"]').disabled =
false;
document.querySelector(
'button[value="submit-payment"]',
).disabled = false;
if (data.resultCode === constants.SUCCESS) {
const {
giftCardsInfoMessageContainer,
Expand All @@ -214,8 +215,9 @@ function getGiftCardConfig() {
initialPartialObject.totalDiscountedAmount;
});

document.querySelector('button[value="submit-payment"]').disabled =
true;
document.querySelector(
'button[value="submit-payment"]',
).disabled = true;
giftCardsInfoMessageContainer.innerHTML = '';
giftCardsInfoMessageContainer.classList.remove(
'gift-cards-info-message-container',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ function displaySelectedMethod(type) {
}

function displayValidationErrors() {
store.selectedPayment.node.showValidation();
if (store.selectedMethod?.node) {
store.selectedPayment.node.showValidation();
}
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ function removeGiftCards() {
giftCardsInfoMessageContainer.classList.remove(
'gift-cards-info-message-container',
);
document.querySelector('button[value="submit-payment"]').disabled =
false;
document.querySelector(
'button[value="submit-payment"]',
).disabled = false;

if (res.resultCode === constants.RECEIVED) {
document
Expand Down
3 changes: 3 additions & 0 deletions src/cartridges/app_adyen_SFRA/cartridge/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class Store {
}

updateSelectedPayment(method, key, val) {
if (!this.componentsObj[method]) {
this.componentsObj[method] = {};
}
this.componentsObj[method][key] = val;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ module.exports = {
'/.well-known/apple-developer-merchantid-domain-association',

CHECKOUT_COMPONENT_VERSION: '5.65.0',
VERSION: '24.3.0',
VERSION: '24.3.1',
};
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/BRL.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.BR);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});

test('Card payment 3DS2 installments success @quick', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/DKK.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.DK);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});

test('MobilePay', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/INR.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.IN);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});

test('UPI Success', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/JPY.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.JP);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});

test('konbini Success', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/NOK.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.NO);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});

test('Vipps Success', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/fixtures/SEK.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for (const environment of environments) {
await checkoutPage.setShopperDetails(shopperData.SE);
if (environment.name.indexOf('v5') !== -1) {
await checkoutPage.setEmail();
};
}
});
test('Swish success', async ({ page }) => {
pendingPaymentsPage = new PendingPayments(page);
Expand Down
Loading

0 comments on commit 756e0b4

Please sign in to comment.