-
Notifications
You must be signed in to change notification settings - Fork 17
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
how to set the Zone for other endpoint than us? #57
Comments
Hey @hefan! Reading the code I think you can do:
and this line will pick up the right endpoint. Let me know if that's correct, please! BTW, I think it's a good idea to make it configurable, so if you want to contribute for that, I guess it's a good change. |
Also, reading this other piece, you can probably add to an initializer:
cc @vassalloandrea (pinging you because you are among the authors of that extension) |
Hello @kennyadsl Adding
to an initializer went well in my case, thank you! However, for being able to configure it, zone needs to be added at least to The Zone should be added as a dropdown for the three zones in the payment method settings, i suppose. If you tell me what is the way you would prefer, i am happy to open a pull request theses days. |
I think the initializer is the best trade-off for now, and we can fix it immediately. If you have extra time for proposing to change it with something in the Admin UI, it would be great as well, but could come later. 🙏 |
so it would be best to mention in Readme, no? |
Yes! |
ok. i will open a respective pull request later or tomorrow.. |
At the moment the extension seems to always connect with the default endpoint from klarna_proxy
https://api-na.klarna.com (production)
https://api-na.playground.klarna.com (test)
see here https://github.com/nebulab/klarna_proxy/blob/main/lib/klarna/configuration.rb#L9
Is there a possibility to add a zone parameter or something similar to be able to send to the europe or oceania servers?
The text was updated successfully, but these errors were encountered: