#Linnea-payment-details-trials
1 messages ยท Page 1 of 1 (latest)
Hello ๐
The subscriptions with trail period should have a pending_setup_intent property which you can use to render the PaymentElement and allow users to provide payment method details
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Thank you so much I'll look into this method now ๐
NP! ๐ about automatically charging only if the customer agrees, I don't think there's a built in way to handle this. You'd want to call the API and cancel the subscription in case the customer doesn't agree to continue after the trial.
Ok coolio I've been trying to find an answer for ages on stripe support so this is super helpful
All good! Happy to help ๐
Good luck