Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

users often get "SHA hash is missing." error #113

Open
schackochandsi opened this issue Oct 19, 2022 · 1 comment
Open

users often get "SHA hash is missing." error #113

schackochandsi opened this issue Oct 19, 2022 · 1 comment

Comments

@schackochandsi
Copy link

schackochandsi commented Oct 19, 2022

users get the "SHA hash is missing. Please check your code and the Developers Documentation." after clicking the 'pay now' button. This API exception is thrown from line

if (empty($response[$this->shaHashType . "HASH"])) {
     throw new ApiException("SHA hash is missing. Please check your code and the Developers Documentation.");
}

of the \src\Services\HostedService.php file

The hppResponse is a valid JSON. This error happens when parsing the hppResponse.

Sometimes the error goes when the user changes their browser and try.

@cristina-nechita
Copy link

Hello!

We couldn't reproduce this issue. If you check GpEcomConfig and the HostedService classes, the default value for shaHashType is set to SHA1. You can find also a working example with HPP here https://github.com/globalpayments/php-sdk/tree/master/examples/gp-ecom/hpp

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

No branches or pull requests

2 participants