Skip to main content

Sandbox Testing

Time: ~10 minutes | Difficulty: Beginner The sandbox processor lets you test the full payment flow — checkout, payment processing, order creation, webhooks — without connecting a real payment gateway or charging real cards.

How the Sandbox Processor Works

The sandbox processor simulates a payment gateway. When a customer submits payment on a checkout that uses a sandbox processor:
  1. The payment is always approved (no real card validation)
  2. An order is created in TagadaPay
  3. Webhooks fire as if a real payment occurred
  4. Subscriptions are created and can be billed
This makes it perfect for:
  • Testing your checkout flow end-to-end
  • Verifying webhook integrations
  • Testing subscription billing cycles
  • QA before going live with a real processor

Step 1: Create a Sandbox Processor


Step 2: Create a Payment Flow

Create a payment flow that routes all traffic to your sandbox processor:

Step 3: Assign to Your Store

Assign the sandbox payment flow to your store. You can pass it at store creation:
Or if your store already exists, assign it via the dashboard: Store Settings → Payments → Select Payment Flow.

Step 4: Complete the Setup

Follow the Merchant Quick Start to create a product and funnel. Once your checkout is live, any payment submitted will go through the sandbox processor.

Testing Payments

On the Checkout Page

  1. Open your checkout URL in a browser
  2. Fill in any email and shipping details
  3. Enter any card number — the sandbox accepts everything:
    • 4242 4242 4242 4242 (or any 16 digits)
    • Any future expiry date
    • Any 3-digit CVC
  4. Submit payment
  5. The order is created and you’re redirected to the thank you page

Via the Headless API

You can also create a checkout session programmatically and share the link:

Verifying Results

After a sandbox payment, verify everything worked:

Check Orders

Check Payments

Check Webhooks

If you’ve configured webhooks, they fire for sandbox payments exactly as they would for real ones:

Testing Subscriptions

The sandbox processor fully supports subscription billing. Create a recurring product and test the billing cycle:
When a customer subscribes through the checkout:
  • The initial payment is processed through the sandbox
  • The subscription is created in TagadaPay
  • Rebilling occurs on schedule (processed through the sandbox)
  • You can manage the subscription via the API or dashboard

Sandbox vs Production


Going Live

When you’re ready for production:
  1. Create a real processor (Stripe, NMI, Adyen, etc.) with production credentials
  2. Create a new payment flow using the real processor
  3. Update your store’s payment flow assignment
  4. Your checkout now processes real payments
You can keep the sandbox processor and flow around for ongoing testing. Just create a separate test store that uses the sandbox flow.

Cleanup

When done testing, archive the sandbox processor:

Next Steps

Merchant Quick Start

Complete setup from zero to live checkout

Multi-PSP Routing

Set up cascade routing across multiple processors

Headless Payments (Frontend)

Build your own checkout UI with client-side card tokenization

Webhooks

Configure webhooks to receive payment events