Skip to content
Advertisement

Sha-out sign not matching in Ogone

I’m trying to make a payment plugin for my webshop for Ogone ideal payments. I can make a payment, but when I return I cannot get the SHA-signs to match.

I have the following get request on return:

JavaScript

According to the documentation, I have to order the keys alphabetically and only hash those that are allowed.

These are the allowed keys:

JavaScript

I made this method to make the hash:

JavaScript

I’m 100% sure the SHA out key is correct.

The string it makes before I do SHA1:

JavaScript

And the final hash I get is:

JavaScript

No matter what I try, I just can’t get it to match it with the one in the $_GET request.

My sha-out key: abcDEFghj1234560987654

What can I try next?

Advertisement

Answer

The sha out calculation is wrong. This is the code I use in my projects to calculate it, $sha_parms is the full response of Ogone. So $_POST or $_GET

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement