1
2
3
4
PHP
$response = $paycentral->initiate([ 'amount' => 10000, 'currency' => 'XAF', 'phone' => '237691234567', 'description' => 'Commande #456', 'success_url' => 'https://monsite.cm/paiement/succes', 'cancel_url' => 'https://monsite.cm/paiement/annule', ]); // Rediriger vers la page PayCentral header('Location: ' . $response['data']['checkout_url']);
HTML
<!-- Bouton de paiement --> <a href="https://paycentral.gabondunumerique.com/pay/TRANSACTION_ID" class="btn-paycentral"> Payer 10 000 XAF </a>
business_name |
|
logo_url |
|
description |
https://monsite.cm/paiement/succes ?transaction_id=01HXYZ9K2J... &status=success &merchant_reference=CMD-456