Skip to content
Loading 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

Prepared payment `id`.

Request Body

application/json

amountnumberrequired

The order total. Must equal the prepared payment's amount.

currencystringrequired

ISO 4217 currency code. Must equal the prepared payment's.

customerobjectrequired

The buyer, as your order recorded them. At least one of `email` or `phone` is required.

emailstring

Customer email address.

phonestring

Customer phone number (international format).

namestring

Customer full name.

callbackstring | null

Redirect URL after payment. Replaces the one given when preparing.

metadataobject | null

Merged into the metadata given when preparing.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.wajub.com/payments/trx_test_CSUGajfv9xh0XQ5wu2lx/activate" \  -H "Content-Type: application/json" \  -d '{    "amount": 12500,    "currency": "XAF",    "customer": {}  }'
POST
/payments/{id}/activate
{  "activated": true}

Activated

What did you think of this content?