#Ardrit
1 messages · Page 1 of 1 (latest)
Hi there!
Hi soma 😄
If there's a trial period, then there's no payment to be made. So it's expected that no payment method is required.
If you do want to collect a payment method, you should use the pending_setup_intent on the subscription object: https://stripe.com/docs/api/subscriptions/object?lang=python#subscription_object-pending_setup_intent
so you are suggesting that i use a setup intent if im not wrong
i should not allow the user create a subscription without a payment type
Assuming you are creating the Subscription yourself with the subscription endpoint (and not Checkout Session):
- If the subscription requires payment, use the
latest_invoice.payment_intent(a PaymentIntent) to collect the payment information and pay the first invoice - If the subscription doesn't require payment, use the
pending_setup_intent(a SetupIntent) to collect the payment information
thanks