You don't have javascript enabled.
Please enable javascript in your site settings to get better user experience
Please Use PC to view the documentation
Initiate Transaction
This section details the APIs you need to work with to accept payments and create escrow transactions using Verifipay.
https://verifipay.in/test/v1/tripartite-initiate-payment
cURL
Node
Ruby
Python
curl --request POST \
--url https://verifipay.in/test/v1/tripartite-initiate-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/tripartite-initiate-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/tripartite-initiate-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/tripartite-initiate-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,
"code": "Generated",
"description": "Request Approved",
"RedirectURL": "https://verifipay.in/payments/plmoijuhgdftdsawertyuvb"
}
{
"success": false,
"code": "BAD_REQUEST",
"description": "Invalid request payload",
}
Request Header
Header Name Header Value
Content-Type application/json
x-api-token API Token Provided by Verifipay
x-redirect-url Dynamic redirect URI for UI callback
x-redirect-url-type URL type should be WEB/ANDROID
x-s2scallback Dynamic callback URI for server to server callback, Mode should be HTTP/HTTPS
Sample Payload for Base64
 {
  "Txn_id": "YX93720849HDIN929",
  "Registered_no":"8789460930",
  "Buyer": "9078545461",
  "Buyer_name": "Subhajit Kar",
  "Buyer_email": "subhajitkar1996@gmail.com",
  "Seller": "8789460930",
  "Seller_name": "Aditya Bhargav",
  "Seller_email': "adityabhargav96@gmail.com",
  "Product": [{
     "Product": "Vertis Shirts",
     "Intermediary": "9636020382",
     "Intermediary_name": "Chaitanya Sharma",
     "Intermediary_email": "chaitanyasharma@gmail.com",
     "Intermediary_price": "50",
     "Product": "Vertis Shirts",
     "Price": "450",
     "Inspection period": "6",
     "Description": "Size L, Colour Yellow",
     },
     {
     "Product": "Zello Jeans",
     "Intermediary": "9636020382",
     "Intermediary_name": "Chaitanya Sharma",
     "Intermediary_email": "chaitanyasharma@gmail.com",
     "Intermediary_price": "80",
     "Price": "750",
     "Inspection period": "3",
     "Description": "Size 30, Type Narrow, Colour Blue",
     },
     {
     .
     .
     }]
  "t_price":"1200"
}
Sample Request
 {
  "request": "eyJUeG5faWQiOiJZWDkzNzIwODQ5SERJTjkyOSIsIlJlZ2lzdGVyZWRfbm8iOiI4Nzg5NDYwOTMwIiwiQnV5ZXIiOiI5MDc4NTQ1NDYxIiwiQnV5ZXJfbmFtZSI6IlN1Ymhhaml0IEthciIsIkJ1eWVyX2VtYWlsIjoic3ViaGFqaXRrYXIxOTk2QGdtYWlsLmNvbSIsIlNlbGxlciI6Ijg3ODk0NjA5MzAiLCJTZWxsZXJfbmFtZSI6IkFkaXR5YSBCaGFyZ2F2IiwiU2VsbGVyX2VtYWlsIjoiYWRpdHlhYmhhcmdhdjk2QGdtYWlsLmNvbSIsIlByb2R1Y3QiOlt7IlByb2R1Y3QiOiJWZXJ0aXMgU2hpcnRzIiwiUHJpY2UiOiI0NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjYiLCJEZXNjcmlwdGlvbiI6IlNpemUgTCwgQ29sb3VyIFllbGxvdyJ9LHsiUHJvZHVjdCI6IlplbGxvIEplYW5zIiwiUHJpY2UiOiI3NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjMiLCJEZXNjcmlwdGlvbiI6IlNpemUgMzAsIFR5cGUgTmFycm93LCBDb2xvdXIgQmx1ZSJ9XSwidF9wcmljZSI6IjEyMDAifQ==",
}
Request Parameters
Parameter Name Type Description Mandatory
Txn_id String Unique TransactionID generated by the merchant to track request to Verifipay transactionId length should be less than 38 characters. Yes
Registered_no String Merchant's registered number with Verifipay Yes
Buyer String Contact number of the Buyer in the transaction. Merchant's registered number incase of merchant is buyer in the transaction. Yes
Buyer_name String Name of the Buyer in the transaction. Merchant's name incase of merchant is buyer in the transaction. Yes
Buyer_email String Email of the Buyer in the transaction. Merchant's emailID incase of merchant is buyer in the transaction. Yes
Seller String Contact number of the Seller in the transaction. Merchant's registered number incase of merchant is seller in the transaction. Yes
Seller_name String Name of the Seller in the transaction. Merchant's name incase of merchant is seller in the transaction. Yes
Seller_email String Email of the Seller in the transaction. Merchant's emailID incase of merchant is seller in the transaction. Yes
Product Array Array containing the information of the products in the single transaction Yes
Product.Product String Name of the Product in the transaction Yes
Product.Intermediary String Contact number of the Intermediary for the order in the transaction. Merchant's registered number incase of merchant is an intermediary in the transaction. Yes
Product.Intermediary_name String Name of the Intermediary for the order in the transaction. Merchant's name incase of merchant is an intermediary in the transaction. Yes
Product.Intermediary_email String Email of the Intermediary for the order in the transaction. Merchant's emailID incase of merchant is an intermediary in the transaction. Yes
Product.Intermediary_price String Commission of an Intermediary for the order in the transaction. Yes
Product.Price String Price of the Product in the transaction including delivery fee if any in (Rs.) Yes
Product.Inspection String Inspection Period is the Estimated delivery time. Should be no of Days. Yes
Product.Description String Description of the product Size, Colour, Etc Yes
t_price String Total amount is the sum of price of all the products in the transaction. Yes
Response Parameters
Parameter Name Type Description
success Boolean Success status of the request
code String See list of response codes below
description String Short message about code
Response Codes
Codes Description
BAD_REQUEST Invalid request payload
AUTHORIZATIO_FAILED Incorrect x-verify header
GENERATED Transaction Created Successfully
INVALID_TRANSACTION_ID Duplicate TransactionID
INTERNAL_SERVER_ERROR Something went wrong
To Check the Payment Status of the Transaction.(Check Transaction Status API).