Direct Post Verify
  • 08 Jan 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Direct Post Verify

  • Dark
    Light
  • PDF

Article summary

Request message

Input request parameterDescription
Merchant Authentication TokenY2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy
MessageID 12
TransactionID12345678901234567890
MerchantIDSTSPayOneM
Amount100
LanguageEn
PaymentMethod1
CurrencyISOCode400
PaymentDescriptionSample Payment Description
ResponseBackURL https://MerchatWebSite/PaymentResponse.do 
CardNumber4111111111111111
ExpiryDateYear 22
ExpiryDateMonth01
SecurityCode854
CardHolderName
Card Holder
Channel
0
Quantity
1
Version
1.0
Parameters Order
Amount, Channel, CurrencyISOCode, Language, MerchantID, MessageID, 

PaymentDescription, PaymentMethod, Quantity, ResponseBackURL, TransactionID, Version 

Note: The parameters are ordered alphabetically in the secure hash.
The input to the Secure Hash generation routine 

Y2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy1000400EnSTSPayOneM12Sample+Payment+Descri
ption11https://MerchatWebSite/PaymentResponse.do123456789012345678901.0

Output
92c3205bb9002cbc654311befbdd0cf3f41011bbbfa52da5604145604218d1a3
Note:

CardNumber, ExpiryDateYear, ExpiryDateMonth, SecurityCode and CardHolderName are not a part of the Secure Hash.

Response message

Input response parameterDescription
Merchant Authentication TokenY2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy
Response.MessageID 12
Response.TransactionID12345678901234567890
Response.StatusCode00000
Response.StatusDescriptionPayment processed successfully
Response.GatewayStatusCode0000
Response.GatewayNameTestGateway
Response.GatewayStatusDescriptionSample Gateway Description
Response.Amount100
Response.ApprovalCode654321
Response.CardExpiryDate0122
Response.CardHolderNameCard Holder
Response.CurrencyISOCode400
Response.CardNumber411111******1111
Response.MerchantID
STSPayOneM
Response.RRN
123456
Parameters Order

Response.Amount, Response.ApprovalCode, Response.CardExpiryDate,
Response.CardHolderName, Response.CardNumber, Response.CurrencyISOCode,
Response.GatewayName, Response.GatewayStatusCode,
Response.GatewayStatusDescription,  Response.MerchantID, Response.MessageID ,
Response.RRN, Response.StatusCode, Response.StatusDescription, Response.TransactionID 

Note: The parameters are ordered alphabetically in the secure hash.
The input to the Secure Hash generation routine 

Y2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy1006543210122Card
Holder
411111******1111400TestGateway0000Sample+Gateway+DescriptionSTSPayOneM121
23456
00000Payment+processed+successfully12345678901234567890

Output
80bdc4dc376d5402d93ed3858b688ce4171f23b8d38692c3a814f9de4b56c8cf

What's Next