Create virtual accounts from your backend only. Use your secret key and store the returned
reference so you can verify payment status later.Endpoint
Headers
Request body
Example request
Successful response
Integration flow
1
Create the virtual account
Send the create request from your backend with the amount and customer details.
2
Show the account details
Display the returned
accountNumber, accountName, bankName, bankCode, and amount to your customer.3
Wait for payment
Ask the customer to transfer the exact amount before the account expires.
4
Confirm the status
Verify the payment status through the API or process the webhook notification from Pasteaza.
Notes
- Every virtual account is unique to a collection request.
merchantReferenceis required.expiresAtis optional. In live mode, it must not exceed SafeHaven’s current 24-hour limit.- The customer should transfer the exact amount generated.
- Payments are confirmed automatically through webhooks.
- Store the returned
referenceso you can verify the payment later.
Next step
Verify virtual account status
Check whether a customer has completed the transfer.
Webhooks
Receive real-time payment notifications from Pasteaza.