Skip to content

Commit

Permalink
New front-end region for APSE (#1265)
Browse files Browse the repository at this point in the history
* feat: added new FE region

* feat: added new FE region in BM

* chore: linting
  • Loading branch information
zenit2001 authored Feb 20, 2025
1 parent 4812faa commit eba94cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<div class="form-group">
<label class="form-title mb-0" for="frontendRegion">Front-end resources region</label>
<small id="frontendRegionHelp" class="form-text mb-1">
Enter the closest regions to your shoppers. This setup influences the speed of the Adyen Checkout Component during checkout.
Enter the closest region to your shoppers. This setup influences the speed of the Adyen Checkout Component during checkout.
Ensure that when updating the front-end region, it corresponds specifically to the chosen datacenter for your live prefix (applicable only in LIVE environment).
<a class="text-primary" href="https://docs.adyen.com/development-resources/live-endpoints/#client-side-environment-region" target="_blank">Check the list of regions</a></small>
<div class='input-fields' id="dropdown-options">
Expand All @@ -69,6 +69,7 @@
<option class="dropdown-option" value="EU" id="regionEU" ${AdyenConfigs.getAdyenFrontendRegion() === 'EU' ? 'selected': ''}>EU - Europe (Default)</option>
<option class="dropdown-option" value="AU" id="regionAU" ${AdyenConfigs.getAdyenFrontendRegion() === 'AU' ? 'selected': ''}>AU - Australia</option>
<option class="dropdown-option" value="IN" id="regionIN" ${AdyenConfigs.getAdyenFrontendRegion() === 'IN' ? 'selected': ''}>IN - India</option>
<option class="dropdown-option" value="APSE" id="regionAPSE" ${AdyenConfigs.getAdyenFrontendRegion() === 'APSE' ? 'selected': ''}>APSE - Asia Pacific & Southeast</option>
</select>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module.exports = {
AU: 'AU',
EU: 'EU',
IN: 'IN',
APSE: 'APSE',
},

SHOPPER_INTERACTIONS: {
Expand All @@ -105,6 +106,7 @@ module.exports = {
CHECKOUT_ENVIRONMENT_LIVE_US: 'live-us',
CHECKOUT_ENVIRONMENT_LIVE_AU: 'live-au',
CHECKOUT_ENVIRONMENT_LIVE_IN: 'live-in',
CHECKOUT_ENVIRONMENT_LIVE_APSE: 'live-apse',

MERCHANT_APPLICATION_NAME: 'adyen-salesforce-commerce-cloud',
EXTERNAL_PLATFORM_NAME: 'SalesforceCommerceCloud',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ let adyenHelperObj = {
returnValue = constants.CHECKOUT_ENVIRONMENT_LIVE_IN;
break;
}
if (frontEndRegion === constants.FRONTEND_REGIONS.APSE) {
returnValue = constants.CHECKOUT_ENVIRONMENT_LIVE_APSE;
break;
}
returnValue = constants.CHECKOUT_ENVIRONMENT_LIVE_EU;
break;
}
Expand Down

0 comments on commit eba94cf

Please sign in to comment.