curl --request POST \
--url https://verifipay.in/test/v1/transaction-status \
--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/transaction-status,
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/transaction-status)
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/transaction-status"
headers = {
'content-type': "application/json",
'x-verify': "X-VERIFY"
}
data={"request":"xyz"}
response = requests.request("Post", url, data=data,headers=headers)
print(response.text)
Header Name | Header Value |
---|---|
Content-Type | application/json |
x-api-token | API Token Provided by Verifipay |
{
"Txn_id": "YX93720849HDIN929",
}
{
"request": "eyJUeG5faWQiOiJZWDkzNzIwODQ5SERJTjkyOSIsIlJlZ2lzdGVyZWRfbm8iOiI4Nzg5NDYwOTMwIiwiQnV5ZXIiOiI5MDc4NTQ1NDYxIiwiQnV5ZXJfbmFtZSI6IlN1Ymhhaml0IEthciIsIkJ1eWVyX2VtYWlsIjoic3ViaGFqaXRrYXIxOTk2QGdtYWlsLmNvbSIsIlNlbGxlciI6Ijg3ODk0NjA5MzAiLCJTZWxsZXJfbmFtZSI6IkFkaXR5YSBCaGFyZ2F2IiwiU2VsbGVyX2VtYWlsIjoiYWRpdHlhYmhhcmdhdjk2QGdtYWlsLmNvbSIsIlByb2R1Y3QiOlt7IlByb2R1Y3QiOiJWZXJ0aXMgU2hpcnRzIiwiUHJpY2UiOiI0NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjYiLCJEZXNjcmlwdGlvbiI6IlNpemUgTCwgQ29sb3VyIFllbGxvdyJ9LHsiUHJvZHVjdCI6IlplbGxvIEplYW5zIiwiUHJpY2UiOiI3NTAiLCJJbnNwZWN0aW9uIHBlcmlvZCI6IjMiLCJEZXNjcmlwdGlvbiI6IlNpemUgMzAsIFR5cGUgTmFycm93LCBDb2xvdXIgQmx1ZSJ9XSwidF9wcmljZSI6IjEyMDAifQ==",
}
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 |
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 |
Codes | Description |
---|---|
BAD_REQUEST | Invalid request payload |
AUTHORIZATIO_FAILED | Incorrect x-verify header |
VALID | Payment status valid |
INVALID_TRANSACTION_ID | No Such Transaction Available with Us |
INTERNAL_SERVER_ERROR | Something went wrong |