Skip to main content
You need a Vestrapay merchant account and a test secret key from the dashboard (Settings → Developers).
1

Initialize from your server

2

Response

HTTP 201. The session is in data:
Store data.reference on the order and redirect the customer to data.checkoutUrl.
3

Customer pays

Hosted checkout shows the channels you have enabled. Card uses hosted fields. Transfer shows a dedicated virtual account.
4

Handle the return, then verify

When checkout finishes, the browser hits your callbackUrl with status, reference, amount, and currency as query params. We also POST payment.completed to your webhook. On either signal, verify the reference before you fulfill.