Funding a transaction

Transactions must be funded before the seller can delivery the product or service. When the funding endpoint it called, the user sees available payment methods such as Credit Card, Wire Transfer and Mobile Money.

post
fund a transaction

https://api.vesicash.com/v1/payment/pay
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private key
Form Data Parameters
success_page
optional
string
your success page redirect url
transaction_id
required
string
id of the transaction
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Success"
"data": {
"payment": {
"payment_id": "cPOkmY2Jda",
"transaction_id": "vhfLG5tcVHyCvuO6wytk",
"total_amount": 250000,
"escrow_charge": 500,
"is_paid": true,
"payment_made_at": "2019-09-24 16:23:40",
"updated_at": "2019-09-24 16:23:40",
"created_at": "2019-09-24 16:23:40",
"id": 6
}
}
}

Due to the flexibility of our system, it has become easy to plug in any payment provider of choice to fund transactions. As such, the response you get may be a bit different from the above when you access this endpoint. What this means is, instead of the above response, you may get a response like this:

{ "status" : "ok", "message" : { "link" : "https://somerandom.payment.gateway.com/55rgste193", "ref" : "vc7363674838" } } What this means is, the link in the response is to be pasted in the browser if you wish to see an actual interface to continue the payment on the website of the particular payment provider in use.

For example, you can a make a post request to the endpoint above and pass in the json data below to fund a transaction.

{
"transaction_id": "vhfLG5tcVHyCvuO6wytk"
}

Only when a transaction has been funded does the buyer protection begins, and the seller is instructed to ahead and ship the products or service.