#barucosetupintent
1 messages · Page 1 of 1 (latest)
hi! no, it's not.
You can use a webhook but you could also just call your backend after e.g. the confirmSetup Promise resolves, either way you'd read the payment_method from the SetupIntent and set the appropriate field to mark it as default for subscription payments. https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details#retrieve-setup-intent and the following step covers this side of things a little
Thank you @rocky oriole !
The document you sent is for "checkout" but I assume the same applies when using "Stripe Elements", right?
yes, I'm only really pointing out the last couple of steps that cover reading the SetupIntent and setting the fields on the Customer/Subscription object, since it's a place where those steps are clearly documented and are generic; the preceding parts about Checkout don't apply