First Check the
Order Status .
On getting same response as below, buyer has the rights to release payment for the order in the transaction.
data : {
"Buyer_agree" :
true ,
"Buyer_paid" :
true ,
"Seller_agree" :
true ,
"Buyer_del_conf" :
false ,
"Seller_del_conf" :
true/false
}
This section details the APIs you need to work with to release payment for particular product
in a transaction.
POST
https://verifipay.in/test/v1/buyer-release-payment
curl --request POST \
--url https://verifipay.in/test/v1/buyer-release-payment \
--header 'content-type: application/json' \
--data '{"request":"xyz"}' \
--header 'x-verify: X-VERIFY'
var request = require ("request" );
var options = { method : 'POST' ,
url : https://verifipay.in/test/v1/buyer-release-payment ,
headers :
{ 'x-verify' : 'X-VERIFY' ,
'content-type' : 'application/json' }
data :{"request":"xyz" } };
request (options , function (error , response , body ) {
if (error ) throw new Error(error );
console.log (body );
});
require 'uri'
require 'net/http'
url = URI (https://verifipay.in/test/v1/buyer-release-payment )
http = Net::HTTP .new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP:: Post .new(url)
request ["content-type" ] = 'application/json'
request ["x-verify" ] = 'X-VERIFY'
response = http.request(request)
puts response.read_body
import requests
url = "https://verifipay.in/test/v1/buyer-release-payment"
headers = {
'content-type' : "application/json" ,
'x-verify' : "X-VERIFY"
}
data ={"request":"xyz" }
response = requests.request("POST" , url , data =data ,headers =headers )
print (response.text )
Success
Failure
{
"success" : true ,
"code1" : "INTERMEDIARY_PAYOUT_DONE" ,
"code2" : "SELLER_PAYOUT_DONE" ,
"description1" : "Intermediary payout done successfully"
"description2" : "Seller payout done successfully"
}
{
"success" : false ,
"code" : "BAD_REQUEST" ,
"description" : "Invalid request payload" ,
}
{
"request" : "eyJUeG5faWQiOiJZWDkzNzIwODQ5SERJTjkyOSIsIlJlZ2lzdGVyZWRfbm8iOiI4Nzg5NDYwOTMwIiwiQnV5ZXIiOiI5MDc4NTQ1NDYxIiwiQnV5ZXJfbmFtZSI6IlN1Ymhhaml0IEthciIsIkJ1eWVyX2VtYWlsIjoic3ViaGFqaXRrYXIxOTk2QGdtYWlsLmNvbSIsIlNlbGxlciI6Ijg3ODk0NjA5MzAiLCJTZWxsZXJfbmFtZSI6IkFkaXR5YSBCaGFyZ2F2IiwiU2VsbGVyX2VtYWlsIjoiYWRpdHlhYmhhcmdhdjk2QGdtYWlsLmNvbSIsIlByb2R1Y3QiOlt7IlByb2R1Y3QiOiJWZXJ0aXMgU2hpcnRzIiwiUHJpY2UiOiI0NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjYiLCJEZXNjcmlwdGlvbiI6IlNpemUgTCwgQ29sb3VyIFllbGxvdyJ9LHsiUHJvZHVjdCI6IlplbGxvIEplYW5zIiwiUHJpY2UiOiI3NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjMiLCJEZXNjcmlwdGlvbiI6IlNpemUgMzAsIFR5cGUgTmFycm93LCBDb2xvdXIgQmx1ZSJ9XSwidF9wcmljZSI6IjEyMDAifQ==" ,
}
You will have to check the Order Status of the Transaction before performing any action. To
confirm payment by seller
(Seller Confirm's payment) .