AApt Commerce
Sign inGet started
Show for

Testing & Sandbox

Develop and test with documented test cards only. Never enter a real card. APT sandbox processor — not a live acquirer.

Test Mode

All API calls made with sk_test_ keys operate in sandbox mode. No real charges are made, no real funds move, and test data is isolated from production.

Test Card Numbers

4242 4242 4242 4242Success
4000 0000 0000 0002Decline
4000 0000 0000 9995Insufficient funds
4000 0000 0000 32203D Secure required
4000 0000 0000 0069Expired card

Use any future expiry date (e.g., 12/27) and any 3-digit CVC. Hosted pay (`/pay/:id`) and sandbox charges accept these numbers only. Never use a real card. PAN is not stored.

Test Bank Accounts (ACH)

Routing: 110000000Success
Routing: 110000001Failure

Use any valid account number (e.g., 000123456789).

Test Webhooks

Send Test Events

Use the "Send Test Event" button in your Webhooks settings to trigger test webhook deliveries to your endpoint.

Clock Testing

Use the test clock API to simulate time-based events like subscription renewals and invoice due dates without waiting:

// Advance test clock by 30 days
await apt.testClock.advance({
  frozen_time: '2026-04-14T00:00:00Z',
});
// All subscriptions and invoices advance accordingly