Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Ogone SHA Error #6

Open
morgan-enetb opened this issue Dec 14, 2015 · 1 comment
Open

Ogone SHA Error #6

morgan-enetb opened this issue Dec 14, 2015 · 1 comment

Comments

@morgan-enetb
Copy link

If there are double space in fields (like address). The SHA is generated with double space in method "calculateShaSign" in Prestashop module. In template, in form's values, the double space are transformed in one space. So, Ogone calculate SHA with one space and SHA does not correspond.
It should send value to ogone with double space or remove double space in calculate SHA in Prestashop module.

To test, simply add Two space in address and go to checkout page on Ogone => you should get an error message.
Error code obtained on Ogone : unknown order/1/s/

@Stigmi
Copy link

Stigmi commented Jan 27, 2016

Issue confirmed. It happens when "Minify HTML" is enabled in the performance tab of the back office.

The double space is indeed removed in the hidden HTML field and the Shasign calculted by Ogone won't match the one calculated by the module.

We fixed that by always removing extra spaces within the assignOgonePaymentVars function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant