#sai_rez-sub-pending-setup-intent
1 messages · Page 1 of 1 (latest)
Hey! Any subscription where no immediate payment is needed (coupon, free trial) will return a pending_setup_intent
Would that be the case on an active subscription?
Do you have a specific example?
A subscription would have status: 'active' if you applied a coupon that permitted a free period, yes
And subsequently there should also be pending_setup_intent
I need to recreate a scenario where a user has an active subscription with a pending setup intent with their latest invoice being paid using a payment intent e.g this customer here
cus_Koc3J4wEWrDo2o
pending setup intent with their latest invoice being paid using a payment intent
You'd never have both
You'd only ever have a pending_setup_intent on creation of the initial subscription when payment isn't immediately due
You can't force that retrospectively on an existing subscription
I see, what would be the best way to replicate the state the user I posted is in?
It seems his latest invoice is paid using payment intent but the sub still has a pending setup intent
This subscriptipn? sub_1KkLxpLmu5QiBx4B7k5IHf2y
I guess the pending_setup_intent field isn't clear after successful invoice payments
Yes that subscription
So it should be clear after the invoice payment? It's causing a bug on our app and I am trying to recreate the scenario so we can implement a fix,
Ah, wait. This is an Indian customer?
Yes
I guess this is related to changes we made to accomodate RBI regulations changes for recurring payments: https://support.stripe.com/questions/rbi-regulations-guide-for-stripe-billing-and-invoicing-users
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
The Setup Intent is probably required in all cases for Indian customers as we need to collect mandates for all recurring Indian payments
I see so for Indian users, regardless if they have paid their latest invoice they would have a pending setup intent, the behaviour is expected?
Just checking on that
Thanks for that
Yep, this seems expected to me. This request created the Setup Intent: https://dashboard.stripe.com/logs/req_BpNTI5RbZ0R1YJ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So attaching a pre-existing payment method as the default to the sub will create the Setup Intent in case of mandate requirement
Ok thanks for that, is that only for Indian customers or all users?
as far as I know it could be for all, if you attach a PaymentMethod directly to the customer(because generally you shouldn't do that, you should use SetupIntents upfront to accept and save the card) and a mandate is needed, or if 3D Secure is needed, we probably create a pending_setup_intent to use.
Ok thanks for the information