external-payments
Create a payment and get a hosted payment page URL
Creates a payment for the authenticated client and returns paymentUrl. Send the customer there; they pay on the gateway page and are redirected to your returnUrl with refNo, status, and clientReference query parameters. Treat the redirect as a hint only. The webhook (or GET /v1/payments/{refNo}) is the source of truth.
post/v1/payments
Headers
idempotency-keystring required
Idempotency-Keystring
Retrying with the same key returns the original payment instead of creating another.
Request body
Example request
{
"amount": "52.40",
"currency": "MYR",
"description": "Order #1001",
"returnUrl": "https://shop.example.com/checkout/return",
"clientReference": "INV-1001",
"bankCode": "MB2U0227",
"customerName": "John Doe",
"customerEmail": "john@example.com",
"customerContact": "+60123456789",
"customerIp": "203.0.113.10"
}Response
Example response
{
"refNo": "RP1757150000000A1B2",
"clientReference": "INV-1001",
"gateway": "revpay",
"amount": "52.40",
"currency": "MYR",
"description": "Order #1001",
"refundedAmount": "0.00"
}Changes
Changed in 1 of the 4 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○