Sandbox vs Production
AWDPay exposes two environments that behave identically except for:
- Credential pairs – Sandbox uses a predefined API key/secret so you can start testing instantly.
- Endpoint prefix – All Sandbox URIs add
/test/left before/api; Production calls do not.
Sandbox (Testing)
- Audience: Merchants validating onboarding flows or running automated integration tests.
- Base URL:
https://pay.awdpay.pro - Default credentials:
apiKey = ZndVWnBFQmctTHBERGphRkYtYUlpdHNGU2otN2dTeUh4Y3U6OUxyTHBlUm1Xb2cyb0w1N1V5QXI2MHRaUDdQdXdPOWM,secretKey = YLIacGZYbVON4IPGe1tidmdMen6tuSXe. - Routing rule: Every API path becomes
/test/api/...(e.g.,/test/api/v4/collections).
Example requests
# Obtain a token in Sandbox
curl -X POST https://pay.awdpay.pro/api/auth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=ZndVWnBFQmctTHBERGphRkYtYUlpdHNGU2otN2dTeUh4Y3U6OUxyTHBlUm1Xb2cyb0w1N1V5QXI2MHRaUDdQdXdPOWM" \
-d "client_secret=YLIacGZYbVON4IPGe1tidmdMen6tuSXe"
# Create a collection intent
curl -X POST https://pay.awdpay.pro/api/test/collections \
-H "Authorization: Bearer <sandbox_token>" \
-H "Content-Type: application/json" \
-d '{"amount":1000,"currency":"XOF"}'
Production
- Audience: Live merchants processing real payments.
- Base URL:
https://pay.awdpay.pro. - Credentials: Your production
apiKeyandsecretKeyfrom the dashboard (never reuse Sandbox secrets). - Routing rule: Same endpoints as Sandbox but without
/test/.
Example requests
# Obtain a production token
curl -X POST https://pay.awdpay.pro/api/auth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=PROD-API-KEY" \
-d "client_secret=PROD-SECRET-KEY"
# Create a live collection intent
curl -X POST https://pay.awdpay.pro/api/collections \
-H "Authorization: Bearer <prod_token>" \
-H "Content-Type: application/json" \
-d '{"amount":1000,"currency":"XOF"}'
Migrating from Sandbox to Production
- Update your secrets (and vault references) to the production pair.
- Remove the
/test/prefix from every endpoint call. - Re-run your token exchange with production credentials.