{"title":"Afterpay","slug":"afterpay-payment-provider","url":"https://support.storeconnect.com/articles/afterpay-payment-provider","url_markdown":"https://support.storeconnect.com/articles/afterpay-payment-provider.md","subtitle":null,"summary":"Configure Afterpay as a payment provider in StoreConnect, including API credentials, sandbox testing, and express checkout options.","type":"Help_Documentation","video_url":"","keywords":"afterpay, buy now pay later, payment provider, payment gateway, bnpl, express checkout, sandbox testing, api credentials, afterpay configuration, online payments, third-party payments, storefront payments, line items, discounts, cart guard","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"This topic explains how to configure Afterpay as a third-party payment provider in StoreConnect.\n\n## What you need\n\n- [Afterpay business account](https://www.afterpay.com/en-AU/business)  \n- Access to Afterpay sandbox and/or production credentials  \n- Basic StoreConnect admin knowledge  \n\nAfterpay is supported on StoreConnect web storefronts only and is not available for POS.\n\nRefer to [Afterpay docs](https://developers.afterpay.com/afterpay-online-developer/guides/welcome/getting-started/introduction) if needed.\n\n---\n\n### Sandbox access\n\nTo test your integration, request sandbox credentials from Afterpay.\n\n- Sandbox access may take several business days to provision  \n- Credentials are provided by Afterpay’s technical team  \n\n## Configure Afterpay in StoreConnect\n\n### Basic configuration\n\n1. Open StoreConnect and go to **Settings \u003e Payments \u003e Payment Providers**.\n2. Select **New**.\n3. Complete the fields as follows, then **Save**.\n\n| StoreConnect field                      | Select or enter                  |\n|-----------------------------------------|-----------------------           |\n| Name                                    | Afterpay                         |\n| Provider                                | Select Afterpay                  |\n| API Mode                                | sandbox or production            |\n| API Key                                 | API Key (Username) from Afterpay |\n| API Secret                              | API Secret (Password/Secret Key) |\n| API Option to enable 3DS                | three_d_secure: true             |\n| API Option merchant ID (required)       | merchant_id: your_merchant_id    |\n| API Option to show Afterpay wallet      | show_wallets: true               |\n| API Option to enable express checkout   | express_checkout_enabled: true   |\n\n### API Modes\n\n- `sandbox` — for testing with Afterpay sandbox credentials  \n- `production` — for live transactions  \n\nWhen using `sandbox`, StoreConnect automatically routes requests to Afterpay’s test environment.\n\n### API Options (example)\n\n```\nthree_d_secure: true\nmerchant_id: XXXXXXB03CUR9012345\nshow_wallets: true\nexpress_checkout_enabled: true\n```\n\n## Checkout behavior\n\nWhen 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.\n\nIf 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.\n\n## Troubleshooting\n\n- Ensure API Mode matches the credential type (sandbox vs production)  \n- Confirm credentials are entered correctly  \n- Verify Afterpay messaging is visible on product pages  \n- Check with Afterpay if sandbox access has not been provisioned"}