How it works
Use afpay_test_ key and every call goes to the sandbox. Responses include "livemode": false, and webhooks carry the header x-flipeetpay-mode: sandbox.
- Your sandbox balance starts at 10,000 USDC and 10,000 USDT, separate from your live balance.
- Deposits wait for you, as a real customer would. Complete or fail them with Simulate an outcome.
- Withdrawals settle on their own after about 3 seconds.
- Orders and bank deposits are priced at fixed test rates, so your tests give the same numbers every time.
Quotes, rates and the bank list return live data even with a test key, so you can build against real numbers. Orders, deposits and payouts are what’s simulated.
Simulate a payment
Pass the reference of any sandbox deposit, withdrawal or ramp order, or a checkout’stxRef, with success or failed. For deposits you can say how much the customer paid, to test under- and over-payment.
completed or failed, your sandbox balance changes as it would live (fees included), and the webhook goes out. Each payment settles once; a second call gets 409.
Test values
Like test card numbers, these make a call fail so you can test your error handling.Checkout in the sandbox
A test checkout page shows a sandbox banner with Complete payment and Fail payment buttons, so you can click through your whole flow, including the redirect. It never takes real funds. Failing a test checkout sendscheckout.failed, so you can test that path too.
