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

PaymentsPlugin: make redirectUrl dynamic for a mollie payment method #2093

Closed
seminarian opened this issue Mar 22, 2023 · 0 comments
Closed

Comments

@seminarian
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The current version of the mollie payment plugin requires setting of a redirectUrl in the payment method through Admin UI.
Currently it's not possible to use one payment method (with one mollie API key) for different consumers of the Ecommerce Engine. E.g. Web Frontend, Mobile app, ...

Describe the solution you'd like
A clear and concise description of what you want to happen.
Add a redirectUrl property to the input of the createMolliePaymentIntent mutation. This lets the consumer choose which URL to redirect to after successfully paying on the Mollie website.

Describe alternatives you've considered
Creating multiple payment methods per consumer (apps, web frontends, preview branches,..)
Gets messy fast though, doesnt work for Vercel preview branches.

Additional context
Add any other context or screenshots about the feature request here.

seminarian added a commit to seminarian/vendure that referenced this issue Mar 22, 2023
Relates to vendure-ecommerce#2093. This commit removes redirectUrl from the payment method and lets it get passed via the Shop API createPaymentIntent mutation.

BREAKING CHANGE: `redirectUrl` got removed from the mollie payment method. Consumers of the ecommerce-engine now have to pass `redirectUrl` via the createPaymentIntent mutation.
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