#Kromolabs Developer
1 messages ยท Page 1 of 1 (latest)
๐ The issuers can ask for authentication on an off-session payment so not sure you can completely avoid it.
Is there a reason you're using SetupIntent prior to creating a subscription? rather than creating a subscription first and using that to collect the payment method?
Mmmh, you're saying that i should create the subscription first without method
And then attaching the method after confirmation?
You can create a subscription,
- If you offer a trial, the subscription will have a
pending_setup_intentthat you can use to render elements and collect payment method - If you don't offer a trial, the subscription will have
latest_invoice.payment_intentthat you can use to render elements and collect payment method
This would allow you to avoid going through 3DS auth twice
Ok, then i would have to do stripe.confirmCardPayment with the latest_invoice.payment_intent to "confirm" the method
But the future renewal will be automatically paid with the same payment method?
Without authenticating again?
Yes, you'd want to set save_default_payment_method to on_subscription
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
NP! ๐ Happy to help