#romerocox-stripe-js
1 messages · Page 1 of 1 (latest)
Hey bud.
Stripe creates a subscription for a CX even before collecting the payment details, right? This is by design
Define CX
customer sorry
So, when the Stripe.js mounts the payment details element, if the CX closes the pop-up, I'd save his setupintent, to avoid creating another subscription.
If the user change his mind to another plan, and selects it a different plan from the menu, since he already has a subscription created, he will be "upgrading", but, since he closed the payment details previously, Stripe is unable to collect that. but the subscription is still going through the change.
So i'd like to check if the cx has a payment method before
but now I realize that I just need to check for the default_payment under the user object
😐
That's what I was going to suggest, so it sounds like you're on the right track