Vesicash API Documentation V2
  • Overview
  • API DOCUMENTATION
    • API Basics
    • Authentication
    • Errors
    • Escrow Transactions
      • Create a transaction
      • Get transaction by transaction_id
      • Get transaction charges
      • Get bank lists
      • Get transactions by userid
      • Get all transactions
      • Pay for transaction
      • Send transaction invite
      • Accept transaction
      • Reject transaction
      • Mark milestone as done
      • Accept milestone delivery
      • Reject milestone delivery
      • Request due date extension
      • Approve due date extension
      • Edit transaction
      • Edit milestone
      • Edit party
      • Delete transaction
      • Webhook Notification
    • Merchant Of Record
      • Initiate MoR checkout
      • Get MoR transactions
Powered by GitBook
On this page
  • pay for transaction
  • Request body
  • Response
  1. API DOCUMENTATION
  2. Escrow Transactions

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.

  • Sample request

    {
        "payment_method":"card",
        "gateway":"rave",
        "redirect_url":"http://redirect.com",
        "transaction_id":"{{transaction_id}}"
    }

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"
    }
}
```
PreviousGet all transactionsNextSend transaction invite

Last updated 10 months ago