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

Getting 508 error #52

Open
Pinni05 opened this issue Jun 13, 2022 · 1 comment
Open

Getting 508 error #52

Pinni05 opened this issue Jun 13, 2022 · 1 comment

Comments

@Pinni05
Copy link

Pinni05 commented Jun 13, 2022

508
Incorrect hash. Please check your code and the Developers Documentation.

Getting This error. This error does not give any specific error. Also in the example country, HPP_BILLING_COUNTRY is 826. can you please let me know from where I can get this value?

@ahumulescu
Copy link
Contributor

Hello,

You are getting 508 because the hash is invalid. The process of generating it depends on the type of the transaction you are trying to accomplish (eg: https://developer.globalpay.com/hpp/card-payments#generate-hash)

As for the country code, it is the ISO 3166-1 numeric three-digit code. For example, US = 840.

You usually want to pair this library with one of our server side SDK's, which will make the integration process easier, as it will generate all the necessary data for you.

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