Initiate Payment
Initiate Payment
Use this endpoint to initiate a new payment transaction with either BENEFIT or MASTERCARD.
π Endpoint Overview
Method | URL |
---|---|
POST | https://init-vpay.venlabs.link/merchant/initiate-payment |
Use this endpoint to begin a new payment session and receive a redirect link for the user.
Request Body
{
"merchant_id": 160,
"payment_provider":"mastercard",
"amount": 10
}
Parameters
Field Name | Type | Required | Description |
---|---|---|---|
payment_provider | string | β | The payment provider (BENEFIT or MASTERCARD ) |
amount | float | β | Transaction amount (e.g., 100.50 ) |
merchant_id | string | β | Merchant_id (e.g., 12003) |
Response Example
{
"redirect_url": "https://benefit.example/pay?token=abc123 ",
"track_id": "324njl-23oijid-nvniroi3-lndksd"
}
Error Responses
Status Code | Description |
---|---|
400 | Invalid payment provider or missing merchant configuration |
500 | Internal server error |
β οΈ Make sure the merchant has configured credentials for the selected payment provider in advance.
Next
After initiating a payment, you can check its status using the /payment-status endpoint.