#juraj.puchky
1 messages ยท Page 1 of 1 (latest)
Hello ๐
When you use trial days, the first invoice is generated for $0 since there's no payment required.
hence there's no PaymentIntent. If you're looking to collect PaymentMethod information then you'd likely want to look for pending_setup_intent and use that with PaymentElement
thanks so with trial i should use pending_setup_intent?
like in ['latest_invoice.payment_intent'],
Yes. However, pending_setup_intent is a property on the subscription and NOT on latest_invoice
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
So you'd likely expand => [pending_setup_intent] instead
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
its working thanks a lot ๐
Great, happy to help ๐