#mattwoberts

1 messages · Page 1 of 1 (latest)

pseudo fulcrum
#

sure, what is up?

proper pagoda
#

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?

pseudo fulcrum
proper pagoda
#

Ah that's good. So I should check for an incomplete subscripion, and if there is one, use that, else create a new one, and that can then be tied into "confirmCardPayment".

#

Thanks a lot for this