Afterpay Developer Docs

Configure Cartridge

Key Configuration Settings

πŸ“˜

Full installation and configuration instructions are available to download from https://xchange.demandware.com/docs/DOC-51764

Once the cartridge has been installed you can configure the following settings from the Business Manager.

Business Manager

Afterpay configuration can be accessed in the Site Preferences > Custom Preferences section of the Business Manager.

The below fields should be configured for your region:

Site Preference Description Default Values
apDelayRetry The field is required to set delay time for the unavailable service.
CapturePayment The field is used to set timeout for the Direct Timeout Capture payments.
UserAgent The field is used to send the UserAgent details to Afterpay.
Enable Afterpay The field determines if the Afterpay is enabled / disabled in the cartridge. FALSE
Afterpay Display Product Details Page Information The field determines if the Afterpay messaging is displayed on the Product Details Page. TRUE
Afterpay Display Product List Page Information The field determines if the Afterpay messaging is displayed on the Product List Page. FALSE
Afterpay Learn More URL The URL that links to more information about Afterpay that users can click to view. πŸ‡¦πŸ‡Ί AU:
https://www.afterpay.com.au/terms/ πŸ‡ΊπŸ‡Έ US:
https://www.afterpay.com/purchase-payment-agreement
Afterpay Payment Mode This field determines if the payment should be Authorised only or if a Direct Capture is to be used. Merchant Specific – Select the ones to be supported.
Afterpay Service Name This field is used to identify the service with Afterpay. This only needs to be changed if you are using multiple sites where those sites are using additional Afterpay accounts as the accounts are stored in the service πŸ‡¦πŸ‡Ί AU:
afterpay.http.defaultendpoint
πŸ‡³πŸ‡Ώ NZ:
afterpay.http.defaultendpoint.NZ
πŸ‡ΊπŸ‡Έ US:
afterpay.http.defaultendpoint.US
Afterpay JavaScript URL The endpoint where the javascript library is obtained from – Use
Sandbox - https://portal.sandbox.afterpay.com/afterpay.js
  
Production - https://portal.afterpay.com/afterpay.js
Default Controller Cartridge Name
*not used in SFRA
Name of default storefront controller cartridge app_storefront_controllers
Default Core Cartridge
*not used in SFRA
Name of default storefront core cartridge
Afterpay Minimum Threshold Amount Afterpay minimum threshold amount
Afterpay Maximum Threshold Amount Afterpay maximum threshold amount

Updated 5 months ago


Configure Cartridge


Key Configuration Settings

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.