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

allow stripe plugin to ignore payments made outside of vendure #3249

Closed
jezzzm opened this issue Dec 1, 2024 · 1 comment
Closed

allow stripe plugin to ignore payments made outside of vendure #3249

jezzzm opened this issue Dec 1, 2024 · 1 comment

Comments

@jezzzm
Copy link
Contributor

jezzzm commented Dec 1, 2024

Is your feature request related to a problem? Please describe.
Our Stripe account accepts payments from sources outside Vendure (e.g. we have a direct subscriptions integration). these generate payment intent events which should be ignored by Vendure, as they do not have the requisite metadata (channelToken, orderId, order, orderId).

Describe the solution you'd like
If a payment intent event arrives at the Vendure webhook handler and it doesn't have the expected metadata, ignore it and return a 200 response to Stripe.

Describe alternatives you've considered
Currently, I have copied the whole stripe plugin and added one check and early return in the controller.

Additional context
most of our payments are currently handled outside of vendure
image

@jezzzm
Copy link
Contributor Author

jezzzm commented Dec 1, 2024

see #3250

@jezzzm jezzzm closed this as completed Dec 11, 2024
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