<?php
use PayCentral\PayCentral;
$pc = PayCentral::init('sk_live_xxxx');
$session = $pc->checkout([
'amount' => 5000,
'currency' => 'XAF',
'description' => 'Commande #1234',
'success_url' => 'https://monsite.cm/merci',
]);
header('Location: ' . $session->checkout_url);
# Simuler un paiement Airtel Money : validation manuelle (…3333)
curl -X POST https://api-paycentral.gabondunumerique.com/api/v1/payment/initiate \
-H "X-Api-Key: sk_sandbox_xxxx" \
-H "Content-Type: application/json" \
-d '{"amount": 5000, "currency": "XAF", "phone": "+24107123333"}'
M MTN |
O Orange |
A Airtel |
M Moov |
V Visa/MC |
|
|---|---|---|---|---|---|
| 🇨🇲 Cameroun | ✓ | ✓ | — | — | ✓ |
| 🇨🇬 Congo-Brazzaville | ✓ | ✓ | ✓ | — | ✓ |
| 🇬🇦 Gabon | — | — | ✓ | ✓ | ✓ |
| 🇹🇩 Tchad | — | ✓ | ✓ | ✓ | ✓ |
| 🇨🇫 | — | ✓ | ✓ | — | ✓ |
| 🇬🇶 | ✓ | ✓ | — | — | ✓ |