1. Home
  2. CollegePAY 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 – 6207

3) MacKey –

CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3

 

String to be hashed =

6207MYC_060616_31CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3

 

After computing value…

 

Hash =

511F7BBA87B15BD727F4BC20EE071DD86E6DF71D427A749BEEBA4C1A8808C2D3F82C14DCE1DB9D757E5F592DC9D7A4C20CDAC14CC70784EA42F08DB5B3FB3687

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?