PayCentral ›


Bash · requête
curl -X POST https://api-paycentral.gabondunumerique.com/api/v1/checkout/sessions \
  -H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 10000,
    "description": "Abonnement Premium",
    "success_url": "https://monsite.com/merci?commande=456",
    "cancel_url": "https://monsite.com/panier?commande=456",
    "metadata": { "order_id": "456" }
  }'
JSON · réponse 201
{
  "success": true,
  "session_id": "01a1918d-9cbb-72ff-9650-019e6753648f",
  "checkout_url": "https://paycentral.gabondunumerique.com/pay/01a1918d-9cbb-72ff-9650-019e6753648f",
  "expires_at": "2026-10-31T11:42:19+00:00",
  "amount": 10000,
  "currency": "XAF"
}