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

Create new payment intent on charge attempt error #10671

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

hdiniz
Copy link
Contributor

@hdiniz hdiniz commented Sep 28, 2024

When a payment intent confirmation fails (decline card, insufficient funds, etc), create a new payment intent to prevent reusing a an already used one attached to an order as https://github.com/opencollective/opencollective-api/pull/10336/files will prevent a new order created with a duplicated payment intent.

@hdiniz hdiniz self-assigned this Sep 28, 2024
Copy link

vercel bot commented Sep 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
opencollective-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 10:02am
opencollective-styleguide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 10:02am

@hdiniz hdiniz merged commit b5c4d01 into main Sep 30, 2024
19 checks passed
@hdiniz hdiniz deleted the use-new-payment-intent-on-checkout-error branch September 30, 2024 11:55
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