-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(mollie-plugin): Support extra parameters for listing methods #2516
feat(mollie-plugin): Support extra parameters for listing methods #2516
Conversation
✅ Deploy Preview for effervescent-donut-4977b2 canceled.
|
I'm being undecisive if it makes more sense to have Vendure just calculate the amount/currency, instead of having a frontend pass it in via GQL inputs. On one hand, it allows a for a broader usage of the query endpoint, on the other hand it allows for unintentional wrong currencies or values that are not equal to the active order one's. Curious to hear input from @martijnvdbrug & @michaelbromley |
I agree with @StampixSMO, I would say I do see |
Thanks for the input @martijnvdbrug Shouldn't the locale also just be inferred from the |
The locale used by Mollie will most likely be different then the one used by a storefront. Mollie only accepts certain locales :) |
@StampixSMO Good point, I agree on that. But as @casperiv0 said, Mollie unfortunately only supports specific locales. For payment intent creation we also do a best guess of the locale (see this line), so it would make sense to be able to overidde this from a storefront perspective. This goes both for |
@martijnvdbrug, I've added the locale as an input type for the mutation. This PR is now ready for review :) |
Failing build doesn't look to be related to this PR |
Thanks for this PR and for the feedback which helps me understand the issues involved. I have a couple of questions:
The way we do it in the Stripe Plugin is that we allow the user to supply a function in the plugin |
That is possible that users would want to provide more information. Yeah, I also think adding that metadata option would be beneficial for all. I'll start implementing that soon. |
Implemented for the enabled payment methods query. Let me know if it should also be done for the payment intent :)! |
@casperiv0 excellent work! So last thing: this should be made again the And yes let's add support for the payment intent too but we'll get this one merged first and then do it as a separate PR. |
24bab6e
to
a182d76
Compare
Thanks! @michaelbromley base branch has been updated! |
Description
This PR includes:
billingCountry
,amount
andlocale
as per Mollie's documentation: https://docs.mollie.com/reference/v2/methods-api/list-methods#parametersBreaking changes
Nope
Checklist
📌 Always:
⚡ Most of the time:
closes #2510