Sandbox and staging
Test on pay.sifalo.net and spay-api.sifalo.net before you go live.
Use staging to test. Live charges real wallets and cards.
Hosts
| Portal | Gateway | Checkout | |
|---|---|---|---|
| Staging | pay.sifalo.net | https://spay-api.sifalo.net/gateway/ | https://pay.sifalo.net/checkout/ |
| Live | pay.sifalo.com | https://api.sifalopay.com/gateway/ | https://pay.sifalo.com/checkout/ |
- Sign up at https://pay.sifalo.net/auth/signup
- Create API keys
- Call
https://spay-api.sifalo.net/gateway/with the same JSON you will use in live
For hosted checkout, get key + token from the staging gateway, then open:
https://pay.sifalo.net/checkout/?key=YOUR_KEY&token=YOUR_TOKEN
Staging keys and live keys are not interchangeable. Staging only works on
.net. Live only works on.com.
Test wallets
| Scenario | code | eDahab | Premier Wallet | Waafi |
|---|---|---|---|---|
| Success | 601 | 252621111111 or 621111111 | 00252621111111 | 252631111111 or 631111111 |
| Failed | 600 | 252622222222 | 00252622222222 | 252632222222 or 632222222 |
| Pending | 603 | 252651111111 | 00252651111111 | 252633333333 or 633333333 |
| Insufficient | 604 | 252652222222 | 00252652222222 | 252634444444 or 634444444 |
eDahab accepts 62… or 25262…. Waafi accepts 61… or 63… (or 25261… / 25263…) — same scenario endings work for both prefixes (e.g. success 252611111111 or 611111111). Premier sandbox ids start with 00. Any other eDahab, Premier, or Waafi number fails (600). EVC, ZAAD, and SAHAL use "gateway": "waafi". Premier Wallet is USD only.
Staging Waafi uses Sifalo’s local mock (not an external Waafi sandbox). Verify returns status: success, pending, or failed (never failure).
curl -X POST "https://spay-api.sifalo.net/gateway/" \
-u "$SIFALO_API_USER:$SIFALO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account": "252621111111",
"gateway": "edahab",
"amount": "1",
"currency": "USD",
"order_id": "SBX-1"
}'You should get code 601. Save sid.
Test cards
Use these on hosted checkout at pay.sifalo.net only. Not on live, and not a real card.
| Number | Expiry | CVV | |
|---|---|---|---|
| Mastercard | 5123450000000008 | 01/39 | 100 |
| Visa | 4508750015741019 | 01/39 | 100 |
Go live
- Sign up on pay.sifalo.com and create live keys
- Point your server at
https://api.sifalopay.com/gateway/ - Redirect checkout to
https://pay.sifalo.com/checkout/?key=&token= - Use real customer wallets and cards
Updated about 2 months ago
