Collect
Create order
Register the customer and amount. Returns a reference and the methods that order can take.
POST
/payment/order/create/newHeader api-key is the public key. The test panel encrypts the body when an encryption key is set under Keys.
| Field | Notes |
|---|---|
customer | firstname, lastname, email, mobile, country. |
order.amount | Minor units as the API expects for that currency (NGN in naira). |
order.reference | Unique per merchant. Reuse is a validation error. |
payment.redirectUrl | Required. Where the customer returns after hosted checkout. |
The response includes order.paymentLink. Redirect the customer there if you want PayInvert to collect the payment. The test panel opens that link for you, same as the 3DS redirect on card pay.
Keep the reference
Pay, status, and verify all need it. The last reference from a test panel is kept on this tab.