Collect

Create order

Register the customer and amount. Returns a reference and the methods that order can take.

POST/payment/order/create/new

Header api-key is the public key. The test panel encrypts the body when an encryption key is set under Keys.

FieldNotes
customerfirstname, lastname, email, mobile, country.
order.amountMinor units as the API expects for that currency (NGN in naira).
order.referenceUnique per merchant. Reuse is a validation error.
payment.redirectUrlRequired. 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.