#fr0smat1c
1 messages ยท Page 1 of 1 (latest)
But if I create a subscription without trial_ends, this field normally returns payment intent
Hi ๐ this is expected. If you're starting your Subscription with a trial then the first Invoice will be a zero-amoount Invoice and won't generate a Payment Intent.
If you're hoping to use an intent to collect payment method details still, then I would recommend looking into using the Setup Intent stored in pending_setup_intent on the Subscription:
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How to handle 3dsecure for subscription with trials?
We want to handle 3dsecure for these subscriptions with trials immediately, so that the payment, which will be after the trial ends, will already be without 3dsecure
To do that you'll want to use the Setup Intent provided in the pending_setup_intent field to collect payment method details and handle any authentication that is required.
Thanks for info
Any time!