Comments (2)
Hello @GraemeFulton, thank you for a great write up. The current example verifies the payment has been successful by checking if it is a retry and requires_payment_method
on Line 50 here. On line 63 the result of stripe.confirmCardPayment
is the updated payment intent showing success. This should avoid having to do another API call to retrieve the payment intent and can check the status === succeeded there. If this payment intent succeeds the invoice will automatically update and put the subscription in active state.
from subscription-use-cases.
Oooh I see! Thanks a lot, it was there all along 🙈, - so I just need the check where you highlight.
I was confused because in component render line 286, it checks for account information before redirecting, which sometimes isn't 'success', and I wanted to redirect when success only. That solves it though! thank you!
from subscription-use-cases.
Related Issues (20)
- README is not correct HOT 5
- Migrate to default_incomplete
- Add steps for creating Prices with `lookup_keys` HOT 7
- Change to Intraday schema HOT 2
- can't get to prices.html HOT 1
- Fixed price / React / Ruby sample quite broken. HOT 5
- Changing subscription does not work
- live-mode API keys not work in kubernetes cluster HOT 1
- Clients don't work HOT 7
- clientSecret should not be passed as a queryPararm? HOT 2
- Php solution doesn't work HOT 2
- Inconsistent SDK usage. HOT 2
- Google Pay OR Apple Pay button is not showing. HOT 1
- Conversion Issue: Error CS0019 Operator '==' cannot be applied to operands of type 'long' and 'DateTime'
- Subscription creation request fails with customer credit balance (or 100% coupon) HOT 1
- [feature request] Add name field to registration page
- [feature request] Enrich customer creation samples HOT 1
- [feature request] update sample app to use `payment-element`
- Stripe CLI setup Fixed Priced Subs with Node + React not working HOT 7
- HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subscription-use-cases.