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

fix(stripe): fix stripe payment handling #2402

Conversation

asonnleitner
Copy link
Contributor

Implement transactional handling for Stripe Webhook

  • Wrap all Stripe webhook-related operations inside a single transaction using
    TransactionalConnection.withTransaction().
  • Ensures that all database operations within the webhook use the "master" instance.

This change aims to solve the issue of database operations in the Stripe webhook not consistently
using the master instance, which led to inconsistencies in low-latency environments.

Implement transactional handling for Stripe Webhook

- Wrap all Stripe webhook-related operations inside a single transaction using
  `TransactionalConnection.withTransaction()`.
- Ensures that all database operations within the webhook use the "master" instance.

This change aims to solve the issue of database operations in the Stripe webhook not consistently
using the master instance, which led to inconsistencies in low-latency environments.
@netlify
Copy link

netlify bot commented Sep 19, 2023

Deploy Preview for effervescent-donut-4977b2 canceled.

Name Link
🔨 Latest commit 1da6f8b
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-donut-4977b2/deploys/6509a1e5153c7100085e1049

@michaelbromley michaelbromley merged commit fd8a777 into vendure-ecommerce:master Sep 19, 2023
13 of 14 checks passed
@michaelbromley
Copy link
Member

Thank you! 🙏

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

Successfully merging this pull request may close these issues.

2 participants