#mattwoberts
1 messages · Page 1 of 1 (latest)
Hope this isn't too wordy....
Starting point: Due to a previous failed payment, we've locked your account in our app, and cancelled the Stripe subscription you had with us.
Current Flow:
1: Present user with credit card screen (using stripe elements)
2: User enters a card to unlock their account
3: Send card details to stripe to tokenise via "createPaymentMethod"
4: Backend call to attach the PM to a customer, and create a new subscrtion.
Proposed new flow:
1: Present user with credit card screen (using stripe elements)
2: User enters a card to unlock their account
3: Backend call to create a new subscription, return client_secret
4: Pass card details to stripe, along with client_secret, via "confirmCardPayment"
Questions about this new flow:
When the user submits their card details, and we create the subscription, what if the card fails when we call "confirmCardPayment". Has the subscription already started, or is it pending?
What if they only put correct card details in 5 days later, would the subscription start when they finally put correct card details in, or would it start from when they first attempted to enter card details and the sub was created?
yep the new flow is better
Has the subscription already started, or is it pending?
it'sincompleteuntil the payment succeeds
What if they only put correct card details in 5 days later,
they can't, the subscription is onlyincompletefor 23 hours. If they're coming back that far later you would be creating a new subscription.
https://stripe.com/docs/billing/subscriptions/overview#subscription-payment-behavior