#Sudarshanan G
1 messages · Page 1 of 1 (latest)
This PaymentIntent requires an on-session action. Please get your customer back on session and re-confirm the PaymentIntent with a payment method when the customer is on session.
Hi there 👋 can you provide more details about the behavior you're seeing as expected in test mode but not in live mode?
this error comes on renewal
I'm storing the card of the customer while charging a subscription and making it as default method. It works fine in the test environment but not in live mode
That's surfaced when the issuer of a customer's card requires that the customer complete an authentication challenge.
Making sure the payment method is fully set up before using it can help alleviate those occurrences, but it's not possible to fully prvent them as it's ultimately up to the issuer to decide when they require those authentication challenges to be completed.
can you share with me a proper document for the auto-renewal subscription process?.
also as per my application users will add one more card to their card management module and then users will make it the default method for the upcoming renewals.
I need guidance for this scenario
i'm using laravel and react in my applications
The guides here are good starting places for those flows:
https://stripe.com/docs/billing/subscriptions/build-subscriptions
Do you have an example of a livemode subscription that ran into this behavior that you can share? I can try to see if there's a way to better prepare the payment methods.
Just the Laravel framework, or are you using Laravel Cashier as well?
I'm using this package stripe/stripe-php
What part I need to share?. can you guide me I'm new
Do you have the ID of a Subscription, it would start with sub_
yes I have sub_1NgUvmSIsmtgMolIacdtKtm0
Ah, it looks like this may be related to subscriptions within India. India has additional regulations around recurring payments, so those Subscriptions see slightly different behavior that is talked through in more detail here:
https://stripe.com/docs/india-recurring-payments
okay okay
any suggestion for this one
It sounds like you want to set the default payment method. That can be done either at the Customer level:
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
or at the Subscription level:
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Setting it at the Customer level applies to all Subscriptions for that Customer unless the Subscription has a default_payment_method defined directly on the Subscription object.