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

US Region referenced by alias rather than object #7

Open
Rockerby opened this issue Nov 1, 2022 · 0 comments
Open

US Region referenced by alias rather than object #7

Rockerby opened this issue Nov 1, 2022 · 0 comments

Comments

@Rockerby
Copy link

Rockerby commented Nov 1, 2022

I've been working through a site which uses this provider in conjunction with the Vendr Checkout plugin and came across an issue when sending payment info for the US. Opayo requires the region to be provided and in this provider we're finding this by alias reference - where the region is stored against the PaymentInfo object.

I think that it should fetch the region in the same way that it fetches the country, through the PaymentInfo object (rather than attempting to fetch it via an alias). Does this sound like a sensible way forward? I'm happy to create a PR for the work.

Specifically in this code and for reference, here is where it's being stored in the Checkout plugin.

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

1 participant