sample-code-ruby
sample-code-ruby copied to clipboard
Ruby example for `calculate_TransHashSha512()` is not functional
#68 Fixes this, but this fixed code doesn't seem to calculate the same hash that test.authorize.net/gateway/transact.dll
site returns for SIM hosted page forms. Can someone verify the correct text to hash for SIM?
I've located the proper fields to hash in the deprecated SIM documentation and updated the SDK. I will not issue a pull request as this is not complete SIM API support. https://github.com/robertwahler/sdk-ruby/tree/SIM_lifeline
Hi, Thanks for bringing this to our notice. There were some minor issues with the sample which I have fixed.
However, the SIM module has been deprecated in the latest version of the SDK. Server side support for the transHash
value returned in SIM will also be discontinued and will return a null value moving forward. Please refer to the following links for MD5 based hash getting discontinued.
- MD5 Hash End of Life & Signature Key Replacement
- Authorize.Net Support : MD5 Hash End of Life & Signature Key Replacement
- Transaction Hash Upgrade Guide
The new field being sent for verification is transHashSHA2
, for which the sample code you referred to is valid and functional.
Hi, thanks for the response. There is no transHashSHA2
returned from test.authorize.net/gateway/transact.dll
. but there is a SHA2_Hash
that is populated with a hash of 30 different return parameter fields (see the referenced fork above). I understand SIM is deprecated but it is not obsolete yet so I hope that your gateway will continue to return SHA2_Hash
. Could you verify?