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

Request Body

application/json

amountnumberrequired

Must be at least 0.01.

currencystringrequired

Must match an existing stored value. Must be 3 characters.

emailstring | null

This field is required when none of <code>customer_id</code>, <code>phone</code>, and <code>customer</code> are present. Must be a valid email address. Must not be greater than 255 characters.

customer_idstring | null

This field is required when none of <code>email</code>, <code>phone</code>, and <code>customer</code> are present. Must not be greater than 64 characters.

phonestring | null

This field is required when none of <code>customer_id</code>, <code>email</code>, and <code>customer</code> are present. Must not be greater than 32 characters.

namestring | null

Must not be greater than 255 characters.

descriptionstring | null

Must not be greater than 500 characters.

referencestring | null

Must not be greater than 128 characters.

callbackstring | null

Must be a valid URL. Must not be greater than 2048 characters.

expiresobject
ininteger | null

Must be at least 5. Must not be greater than 43200.

customerstring | null
themingobject | null
addressobject | null
shippingobject | null
itemsarray<object | null>
telemetryobject | null
metadataobject | null
bearer"merchant" | "customer"
"merchant""customer"

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.wajub.com/payments" \  -H "Content-Type: application/json" \  -d '{    "amount": 27,    "currency": "ngz"  }'
POST
/payments
{  "code": 201,  "status": "Created",  "message": "Payment initiated",  "authorization_url": "https://pay.wajub.com/tok_xxxxx",  "authorization_token": "tok_xxxxx",  "transaction": {    "id": "trx_01JXXXXXXXXXXXXX",    "reference": "order-4172",    "amount": 25000,    "currency": "XAF",    "status": "pending",    "description": "Order #4172",    "sandbox": true,    "created_at": "2026-01-15T10:30:00Z"  }}

Payment initialized

Que pensez-vous de ce contenu ?