Afterpay
On this page
This topic explains how to configure Afterpay as a third-party payment provider in StoreConnect.
What you need
- Afterpay business account
- Access to Afterpay sandbox and/or production credentials
- Basic StoreConnect admin knowledge
Afterpay is supported on StoreConnect web storefronts only and is not available for POS.
Refer to Afterpay docs if needed.
Sandbox access
To test your integration, request sandbox credentials from Afterpay.
- Sandbox access may take several business days to provision
- Credentials are provided by Afterpay’s technical team
Configure Afterpay in StoreConnect
Basic configuration
- Open StoreConnect and go to Settings > Payments > Payment Providers.
- Select New.
- Complete the fields as follows, then Save.
| StoreConnect field | Select or enter |
|---|---|
| Name | Afterpay |
| Provider | Select Afterpay |
| API Mode | sandbox or production |
| API Key | API Key (Username) from Afterpay |
| API Secret | API Secret (Password/Secret Key) |
| API Option to enable 3DS | three_d_secure: true |
| API Option merchant ID (required) | merchant_id: your_merchant_id |
| API Option to show Afterpay wallet | show_wallets: true |
| API Option to enable express checkout | express_checkout_enabled: true |
API Modes
sandbox— for testing with Afterpay sandbox credentialsproduction— for live transactions
When using sandbox, StoreConnect automatically routes requests to Afterpay’s test environment.
API Options (example)
three_d_secure: true
merchant_id: XXXXXXB03CUR9012345
show_wallets: true
express_checkout_enabled: true
Checkout behavior
When a customer checks out with Afterpay, StoreConnect sends itemized product lines and any discount entries to Afterpay, giving shoppers a clear order breakdown within the Afterpay payment UI.
If the customer modifies their cart in another browser tab after starting the Afterpay payment flow, StoreConnect detects the change and prevents the payment completing against the stale cart total. The customer is returned to the cart to restart checkout with the updated amount.
Troubleshooting
- Ensure API Mode matches the credential type (sandbox vs production)
- Confirm credentials are entered correctly
- Verify Afterpay messaging is visible on product pages
- Check with Afterpay if sandbox access has not been provisioned
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.