For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Before the Afterpay functionality can become available to your site, the cartridge names must be added to the cartridge path of the Site’s settings. To do this, follow these instructions:
If you are using SFRA, enter: int_afterpay_sfra:int_afterpay_core:app_storefront_base. If you are using SFRA > 6.0.0 then you should use int_afterpay_sfra_6 instead.
If you are using SiteGenesis, enter: int_afterpay_sg:int_afterpay_core in front of Sitegenesis base cartridges.
Click Apply.
Set SFCC (Demandware) Service
Navigate to Administration > Operations > Services > Credentials > and select the required service and enter the account details.
In Business Manager, navigate to the Merchant Tools > Site Preferences > Custom Preferences. A custom site preference group with the ID Integration_Afterpay is available for you to use. Select it and edit the attributes according to your Afterpay account data and the data shown in the table below.
Listed preferences are for the Afterpay cartridge v23.4.1 and above. If you are using any other versions please refer to the integration guide provided under the documentation folder in the repository.
Site Preference
Description
Default
Enable Afterpay (enableAfterpay)
This field determines whether all of the cartridge functionality is active and visible on your storefront. You can use this field to temporarily disable the payment method at the checkout along with all customer-facing messaging throughout the site without uninstalling the cartridge.
No
Enable CashAppPay (enableCashAppPay)
This field determines if Cash App Pay is enabled / disabled in the cartridge. Cash App Pay is not available outside the US, keep this setting on the default No.
No
Brand settings (apBrandSettings)
Afterpay / Clearpay Brand related settings in JSON format where: Brand – Afterpay/Clearpay, depending on region; Service – the field is used to identify the service with Afterpay/Clearpay.(You can find the services according to your country under Administration > Operations > Services)
Select either Integrated Shipping (Afterpay Checkout prompts for shipping method), or Deferred (merchant site handles shipping method selection)
Note: If there are multiple shipping methods in the cart, cartridge will disregard this preference and select deferred shipping strategy.
Integrated
Description Express Checkout will use for In-Store Pickup (apStorePickupDescription)
Prompt to use in Afterpay Express Checkout for in-store pickup orders
Available for next-day pickup
Enable Express Checkout on Product Details Page (apEnableExpressCheckoutPdp)
Enables Express Checkout directly from the product detail page. If this setting is disabled but Express Checkout is enabled, the button will appear only on the cart page for SiteGenesis storefronts, and the cart page and minicart for SFRA storefronts.
No
Enable Express Checkout option on cart (apEnableExpressCheckoutCart)
Enable Express Checkout option on cart and minicart(SFRA) page.
Yes
Default Controller Cartridge Name (apControllerCartridgeName)
This is used for SiteGenesis only and can be ignored for SFRA.
app_storefront_controllers
Default Core Cartridge (apCoreCartridge)
This is used for SiteGenesis only and can be ignored for SFRA.
app_storefront_core
Restricted Products(apRestrictedProducts)
The product ids of products that are to be excluded from Afterpay/Clearpay separated by “,”
Add the Afterpay Image to the Payment Method (For SiteGenesis)
To display the Afterpay image on the site, you must add the image to your site:
Go to Merchant Tools > Ordering > Payment Methods.
Select the payment method with the ID AFTERPAY/CLEARPAY (depending on the target region) and locate the image attribute and upload the image included in the cartridge. (int_afterpay_sg/cartridge/static/default/images/logo-afterpay-colour.png or int_afterpay_sg/cartridge/static/default/images/logo-clearpay-colour.png).