1. Home
  2. PAYDirect WEB
  3. Transaction Confirmation Leg
  4. Hash Computation

Hash Computation

Hash Computation

After a concluded PAY transaction and the above parameters were sent to your servers as response. Using the above parameters:-

  • productid (product id as returned by WebPAY)
  • txn_ref (transaction reference as returned by WebPAY)
  • MAC Key (MAC Key used for WebPAY)

where ‘+’ represents string concatenation of values (i.e., “a” + “b” = “ab”).

 

Hash Computation Example

For example for a transaction with the following field values –

1) txn_ref – MYC_060616_31

2) product_id – 6204

3) MacKey –

E187B1191265B18338B5DEBAF9F38FEC37B170FF582D4666DAB1F098304D5EE7F3BE15540461FE92F1D40332FDBBA34579034EE2AC78B1A1B8D9A321974025C4

 

String to be hashed =

6204MYC_060616_31E187B1191265B18338B5DEBAF9F38FEC37B170FF582D4666DAB1F098304D5EE7F3BE15540461FE92F1D40332FDBBA34579034EE2AC78B1A1B8D9A321974025C4

 

After computing value…

 

Hash =

4F0DE379B7300EDA6459F856FB0B8C7A2B60566A17D5AB1BF72CAAEBEF7062226A618D0FB03C8C686E74F146863CC68EBA6CDEF74FEF7AB3582C9816EE88A512

A good resource where you can check the hash you;re generating can be found at the link below-

SHA 512 Generator

Was this article helpful to you? Yes No

How can we help?