Skip to content
Loading keys…
Authorization<token>

A public key (pk./pk_test.) is accepted on /payments, /customers, /links, /invoices and the catalogue reads (/channels, /providers, /countries, /currencies); anything that moves money out, reads the balance or manages the account answers 406 to it. It is an identifier, never an authorization. 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

The prepared payment `id`.

Request Body

application/json

amountnumberrequired

The order total, equal to the prepared payment's amount.

currencystringrequired

ISO 4217 currency code, equal to the prepared payment's.

customerobjectrequired

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

emailstring | null

The buyer's email address.

phonestring | null

The buyer's phone number (international format).

namestring | null

The buyer's full name.

callbackstring | null

Redirect URL after payment.

metadataobject | null

Merged into the payment's metadata.

referencestring | null

Your own reference for this payment, now that the order exists (max 128 chars), as `POST /payments` takes it: free and not unique. Absent, the prepared one stays.

descriptionstring | null

A label shown to the customer on the payment page (max 500 chars). Absent, the prepared one stays.

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": null  }'
POST
/payments/{id}/activate
{  "activated": true}

Activated

What did you think of this content?