Skip to main content

Sandbox vs Production

AWDPay exposes two environments that behave identically except for:

  1. Credential pairs – Sandbox uses a predefined API key/secret so you can start testing instantly.
  2. 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 apiKey and secretKey from 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

  1. Update your secrets (and vault references) to the production pair.
  2. Remove the /test/ prefix from every endpoint call.
  3. Re-run your token exchange with production credentials.