Guides
Go live and test mode
Test and live are two different sets of payments, keys, and webhook URLs.
Test and live are two different sets of payments, keys, and webhook URLs.
| Test | Live | |
|---|---|---|
| Public key | pk_test_... | pk_live_... |
| Secret key | sk_test_... | sk_live_... |
| Money | No real transfer | Real bank transfer |
| Account name | PAYJAR TEST CHECKOUT | SUPAPAY CHECKOUT |
| Account number | Starts with TEST, then the store id | A real account number |
| Popup | Includes Simulate successful transfer | Customer pays from their bank |
Mark a test payment as paid#
Use this while you are building. It only works with a test secret key.
POST
/supapay/v1/test/simulateTest secret keyPOST /supapay/v1/test/simulate HTTP/1.1
Host: app.supa.cash
Authorization: Bearer sk_test_your_secret_key
Accept: application/json
Content-Type: application/json
{
"reference": "order_1001"
}{
"success": true,
"message": "Test payment simulated",
"options": {
"notifications_count": 0,
"payment": {
"reference": "order_1001",
"status": "success",
"amount": 500000,
"fee": 5000,
"charged_amount": 500000,
"settled_amount": 495000,
"environment": "test",
"paid_at": "2026-11-03T16:41:12+01:00"
}
}
}The full payment object is in options.payment. Payjar also sends the payment.success webhook and the receipt emails.
Calling simulate again on a paid test payment returns the same paid payment.
The popup does the same thing when someone clicks Simulate successful transfer. That call is POST /supapay/v1/checkout/{access_code}/simulate and it does not need an API key. It only succeeds for a test payment.
Before you switch on live keys#
- Create the payment on your server with the secret key, or with the popup public key.
- Verify
statusissuccesson your server before you deliver the order. - Save the webhook secret and reject webhooks with a bad signature.
- Use a new
referencefor every order. - Show
charged_amount, not only the price you sent, when the customer pays the fee. - Run one test payment and one simulated success first.
Need a live store?
Register if you have not already, finish one test payment, then switch the store on for live keys.
