Skip to content

Commit

Permalink
Afterpay SFCC v24.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ghatamehta-afterpay committed Mar 8, 2024
1 parent fb69b32 commit 1caffa2
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getAfterpayHttpService() {
service.setRequestMethod(requestBody.requestMethod);
service.addHeader('Content-Type', 'application/json');

var afterpayCartridge = 'AfterpayCartridge/24.1.1';
var afterpayCartridge = 'AfterpayCartridge/24.1.2';
var merchantID = service.configuration.credential.user;
var siteURL = URLUtils.httpsHome().toString();
var storeFront = Site.getCurrent().getID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@
var apBrandUtilities = require('*/cartridge/scripts/util/afterpayUtilities').brandUtilities;
var countryCodeValue = apBrandUtilities.getCountryCode();
</isscript>
<isif condition="${countryCodeValue == 'US'}">
<square-placement
<square-placement
data-mpid="${pdict.priceContext.apMpid}"
data-type="logo"
data-amount="${pdict.priceContext.totalPrice}"
data-page-type="checkout"
data-currency="${session.currency.getCurrencyCode()}"
></square-placement>
<iselse/>
<img class="${paymentOption.ID.toLowerCase() + '-option afterpay-checkout-logo'}"
height="32"
alt="${paymentOption.name}"
title="${paymentOption.name}"
/>
</isif>
</a>
</li>
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<li class="nav-item" data-method-id="${paymentOption.ID}">
<a class="nav-link ${paymentOption.ID.toLowerCase() + '-tab'}" data-toggle="tab" href="${'#' + paymentOption.ID.toLowerCase() + '-content'}" role="tab">
<img class="${paymentOption.ID.toLowerCase() + '-option clearpay-checkout-logo'}"
height="32"
alt="${paymentOption.name}"
title="${paymentOption.name}"
/>
<isscript>
var apBrandUtilities = require('*/cartridge/scripts/util/afterpayUtilities').brandUtilities;
var countryCodeValue = apBrandUtilities.getCountryCode();
</isscript>
<square-placement
data-mpid="${pdict.priceContext.apMpid}"
data-type="logo"
data-amount="${pdict.priceContext.totalPrice}"
data-page-type="checkout"
data-currency="${session.currency.getCurrencyCode()}"
></square-placement>
</a>
</li>
</li>
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@
var apBrandUtilities = require('*/cartridge/scripts/util/afterpayUtilities').brandUtilities;
var countryCodeValue = apBrandUtilities.getCountryCode();
</isscript>
<isif condition="${countryCodeValue == 'US'}">
<square-placement
<square-placement
data-mpid="${pdict.priceContext.apMpid}"
data-type="logo"
data-amount="${pdict.priceContext.totalPrice}"
data-page-type="checkout"
data-currency="${session.currency.getCurrencyCode()}"
></square-placement>
<iselse/>
<img class="${paymentOption.ID.toLowerCase() + '-option afterpay-checkout-logo'}"
height="32"
alt="${paymentOption.name}"
title="${paymentOption.name}"
/>
</isif>
</a>
</li>
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<li class="nav-item" data-method-id="${paymentOption.ID}">
<a class="nav-link ${paymentOption.ID.toLowerCase() + '-tab'}" data-toggle="tab" href="${'#' + paymentOption.ID.toLowerCase() + '-content'}" role="tab">
<img class="${paymentOption.ID.toLowerCase() + '-option clearpay-checkout-logo'}"
height="32"
alt="${paymentOption.name}"
title="${paymentOption.name}"
/>
<isscript>
var apBrandUtilities = require('*/cartridge/scripts/util/afterpayUtilities').brandUtilities;
var countryCodeValue = apBrandUtilities.getCountryCode();
</isscript>
<square-placement
data-mpid="${pdict.priceContext.apMpid}"
data-type="logo"
data-amount="${pdict.priceContext.totalPrice}"
data-page-type="checkout"
data-currency="${session.currency.getCurrencyCode()}"
></square-placement>
</a>
</li>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Afterpay",
"version": "24.1.1",
"version": "24.1.2",
"description": "Afterpay's official cartridge for SFRA and controllers-based SiteGenesis ",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit 1caffa2

Please sign in to comment.