-
Notifications
You must be signed in to change notification settings - Fork 108
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
Comments
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, |
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 |
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, |
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.
The text was updated successfully, but these errors were encountered: