Pay for transaction
The POST /v2/escrow/pay endpoint is used to initiate a payment for an escrow transaction.
pay for transaction
POST
v2/escrow/pay
Headers
Name
Type
Description
Accept*
string
application/json
V-PRIVATE-KEY*
string
your vesicash private key
V-PUBLIC-KEY*
String
your vesicash public key
Request body
payment_method (string, required): The payment method to be used for the transaction.
gateway (string, required): The gateway through which the payment will be processed.
redirect_url (string, required): The URL to which the user should be redirected after the payment is processed.
transaction_id (string, required): The ID of the transaction for which the payment is being made.
Response
The response is in JSON format and follows the schema
```json
{
"status": "success",
"code": 200,
"message": "success",
"data": {
"link": "https://ravemodal-dev.herokuapp.com/v3/hosted/pay/91a573ef44b3e2d0054b",
"reservation_reference": "VSPescrowVSPb998119f-5e1f-4ccc-8bad-5d25a4be4d80",
"status": "pending"
}
}
```
Last updated