Authorization
default 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
Payment `id`.
Header Parameters
Request Body
application/json
A channel slug from `GET /channels`, or `mobile` to let Wajub find the operator from the phone number.
The payer's details for this channel.
Mobile Money number, in international format.
Account or wallet number, for channels that use one.
For a bank channel.
For a crypto channel.
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" }'{ "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