Testing and go-live
What a test key does, how to test safely, and how to switch to production.
Test keys are not a simulation#
Real transactions
pk_test_ keys use the same endpoints, the same providers and the same callbacks as pk_live_. AGIXX does not simulate transactions: a pk_test_ launch opens a real provider session and sends real bet / win callbacks to your callbackUrl. Point it at a test wallet and use test players only.| What you want to test | How |
|---|---|
| Your callback handler, without a game | Run the Validator. |
| How a game looks, without money | "demo": true on launch. GAME_AGGREGATOR and SOFTGAMING only; no callbacks are sent. |
| The whole flow, with callbacks | A normal launch with pk_test_, a test wallet and a test player such as test_player_001. |
Keys#
The AGIXX team issues a pk_test_ key and, at go-live, a pk_live_ key with a new secret. Promotion to production revokes your pk_test_ keys.
TipAt go-live replace both the API key and the callback-signing secret. The wallet sample accepts several secrets at once, so add the new one before the switch.
Go-live checklist#
- Every callback is verified by signature before money moves.
- Check, balance change and stored reply happen in one database transaction.
- Rollback works with
refTransactionIdonly, withrollback_transactions, and by round; a bet is never refunded twice. - Free-spin bets are not debited.
- Win and rollback are never answered with a non-zero
code. - The endpoint answers within 3 seconds under load.
- All 6 Validator tests pass.
- Logs or questions: integration@agixx.net.
Questions about your integration?Write to us with your account name and, if you have one, a sessionId or transactionId. integration@agixx.net