Author Topic: Hash Value error - Quantum gateway  (Read 2273 times)

Offline Hoosier3D

  • Full Member
  • ***
  • Posts: 24
    • View Profile
    • Hoosier 3D Imaging Virtual Tours
Hash Value error - Quantum gateway
« on: 28/October/2009, 07:30:28 PM »
I have searched the existing forum posts and am not finding a solution.  I am getting the follow error after a successful card transaction upon return to my site:

"The Hash value returned by the Quantum Gateway in the callback does not match the hash value calculated by the gateway (this could indicate a spoof callback). Please check the MD5 Hash Value is correct both in your payment gateway settings and in the merchant interface."

I have tried changing the MD5Hash value and leaving it bland.  Neither one works.  Any suggestions would be greatly appreciated!

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Hash Value error - Quantum gateway
« Reply #1 on: 28/October/2009, 07:33:21 PM »
The hash value has to be specified in BOTH the nBill gateway settings AND at the merchant control panel with the payment service provider. Make sure you are using identical values in both places.

Offline Hoosier3D

  • Full Member
  • ***
  • Posts: 24
    • View Profile
    • Hoosier 3D Imaging Virtual Tours
Re: Hash Value error - Quantum gateway
« Reply #2 on: 28/October/2009, 08:01:32 PM »
I have verified they match and again have tried not using a value at all. 

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Hash Value error - Quantum gateway
« Reply #3 on: 28/October/2009, 08:05:34 PM »
Ok, well I did not write the Quantum gateway, so in the first instance I suggest you try asking the authors of that gateway (http://www.axsystechgroup.com). If they are unwilling or unable to help (they are not under any obligation, as it was freely donated), please raise a support ticket giving me access to your site so I can try and look into it myself.

Offline Hoosier3D

  • Full Member
  • ***
  • Posts: 24
    • View Profile
    • Hoosier 3D Imaging Virtual Tours
Re: Hash Value error - Quantum gateway
« Reply #4 on: 28/October/2009, 08:21:09 PM »
Actually, I have contacted Ken Ramirez in the past about the gateway and he has been kind enough to help.  This time it is being used on a new site with a new nBill license.  I am assuming he is just too busy to respond, since it has been a couple of days.  I actually looked back through old trouble tickets of mine and realized that we had the same issue before, but you commented out a line somewhere that basically canceled the Hash check.  That would be a satisfactory solution for me until I can get the problem resolved.

If you would just tell me what file and line# to comment out, I can do that myself.  Or I will raise the ticket if that is better! 

Thanks for your help!  You are always very helpful and prompt and it is much appreciated!   :)

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Hash Value error - Quantum gateway
« Reply #5 on: 29/October/2009, 09:08:21 AM »
You could just copy the gateway files from the other installation that is working.

Or, looking at the code, I would say it is probably lines 140 to 145 (inclusive) and line 163 that need to be commented out in the /components/com_netinvoice/gateway/quantum/quantum.php file (just put 2 slashes // at the start of each of those lines)

Offline Hoosier3D

  • Full Member
  • ***
  • Posts: 24
    • View Profile
    • Hoosier 3D Imaging Virtual Tours
Re: Hash Value error - Quantum gateway
« Reply #6 on: 04/November/2009, 02:04:21 AM »
Thanks for your help!  That worked!  :)  The only issue now is that the invoice shows "part paid" although the amount of the invoice matches the gateway receipt.   ???

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Hash Value error - Quantum gateway
« Reply #7 on: 04/November/2009, 09:03:48 AM »
That sounds odd - are you sure it matches exactly? If so, please raise a support ticket as I will need to login and take a look.