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.
HomeGuides
HomeGuides
  • About Afterpay
    • What Is Afterpay?
    • How Does Afterpay Work?
  • Afterpay Button
      • Overview
      • Sandbox Environment
      • Add The Button
      • Process the Credit Card
      • Order Management
      • Launch
      • Changing the Appearance
    • Afterpay Messaging
  • Express Checkout
    • Express Checkout Overview
    • Adding the Afterpay Express Checkout Button
    • Process The Credit Card
    • Complete the Express Checkout Process
    • Integrated Shipping
    • Checkout Widget
  • Cash App Pay
    • Using the Cash App Pay Button
    • Getting Started
    • Advanced Rendering Control
    • Mobile Redirection
    • Customer On-File Payments
LogoLogo
Afterpay ButtonGetting Started

Sandbox Environment

We provide a Sandbox to facilitate development and testing. It is separate from the Afterpay, Clearpay (UK) or Cash App Afterpay (US) production environment and is accessed via a different URL and uses a different Merchant ID than you’ll use in production.

  • Follow these instructions to create Sandbox Customer Accounts. You will need a customer account to complete the Afterpay checkout flow.
How Can I Get Sandbox Credentials?

Speak to your account manager to obtain sandbox credentials for your region.

Sandbox Virtual Credit Cards

In the sandbox environment, a dummy credit card is returned in the Virtual Card Object. The card number returned can be configured by Afterpay, Clearpay (UK) or Cash App Afterpay (US) so that it is accepted by your test payment environment.

Because the sandbox environment does not use real credit cards, Afterpay, Clearpay (UK) or Cash App Afterpay (US) will not receive payment events such as Auth, Auth Reversal, Capture, and Refund through the credit card network.

Was this page helpful?
Previous

Add The Button

Next
Built with