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

countryCode is required for a DirectoryRequest #6

Closed
WesleyE opened this issue Apr 7, 2016 · 3 comments
Closed

countryCode is required for a DirectoryRequest #6

WesleyE opened this issue Apr 7, 2016 · 3 comments

Comments

@WesleyE
Copy link

WesleyE commented Apr 7, 2016

The manual states:

"All the fields mentioned in the request example (currencyCode, merchantAccount, paymentAmount, skinCode, merchantReference, sessionValidity and merchantSig), except countryCode, are mandatory."

However, the countryCode in the directoryRequest is set to mandatory. I've fixed it for now by giving it a value of 0, but it would be lovely to just supply the request with the right parameters.

@rikterbeek
Copy link
Contributor

Hi Wesly,

It is recommended that you provide the countryCode field, to accurately state the actual location of the payment, so that the correct payment methods for that location are retrieved. That is why it is mandatory in the library. Why do you not want to supply it ?

Regards,
Rik
Adyen

@WesleyE
Copy link
Author

WesleyE commented Apr 8, 2016

Hi Rick,

Thanks for your quick reply. This is because the users might have set a different shipping location than the country they are originally from. We do want to supply the locale to have the payment options translated, but not want to disable for example iDeal for users who are from The Netherlands but want to have their products delivered in Germany.

Regards, Wesley

@rikterbeek
Copy link
Contributor

Hi Wesley,

Could you not better use the country that is selected in the Billing Address ? If you do not send us a countryCode we give back payment methods based on the IP address of your server. I will remove this validation check because it is not mandatory but I still advise you to use it.

Regards,
Rik
Adyen

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