Aller au contenu
Chargement des API keys…
Authorization<token>

Use a public key (pk./pk_test.) for payment initialization. Use a secret key (sk./sk_test.) for sensitive operations (transfers, refunds, balance), or a restricted key (rk./rk_test.) scoped to specific permissions. The _test. variant of any key selects the sandbox environment, there is no separate sandbox URL. Never expose your secret key in client-side code.

In: header

Path Parameters

idstringrequired

Payment `id`.

Header Parameters

Idempotency-Keystring

Request Body

application/json

channelstringrequired

A channel slug from `GET /channels`, or `mobile` to let Wajub find the operator from the phone number.

dataobject

The payer's details for this channel.

phonestring

Mobile Money number, in international format.

account_numberstring

Account or wallet number, for channels that use one.

ibanstring

For a bank channel.

wallet_addressstring

For a crypto channel.

save_payment_methodboolean

Save this payment method on the customer for a later payment. Defaults to `false`.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.wajub.com/payments/trx_test_CSUGajfv9xh0XQ5wu2lx" \  -H "Idempotency-Key: charge-order-1042" \  -H "Content-Type: application/json" \  -d '{    "channel": "cm.mtn"  }'
POST
/payments/{id}
{  "code": 202,  "status": "Accepted",  "message": "Confirm the transaction on your phone.",  "transaction": {    "id": "trx_test_CSUGajfv9xh0XQ5wu2lx",    "status": "processing",    "amount": 5000,    "currency": "XAF"  }}

Waiting for the payer

Que pensez-vous de ce contenu ?