#gopi_67606
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- gopi_67606, 15 hours ago, 8 messages
- gopi_67606, 17 hours ago, 7 messages
- gopi_67606, 22 hours ago, 3 messages
- gopi_67606, 1 day ago, 66 messages
- gopi_67606, 1 day ago, 17 messages
- gopi_67606, 1 day ago, 6 messages
and 6 more
Hii
Hi how can we help?
I am facing the issues for the subscription next invoice by stripe is getting failed when I have used 3d secure authentication cards can I know the reason?
That can totally happens since the Card Issuer bank can require 3DS when they want. Your integration should be resilient to that scenario, grab the PaymentIntent's client secret, bring your customer back online and ask them to authenticate
Yes I am grabing the client secret after then I am triggering confirmCardPayment
sub_1OBvgAD6fLV2vwHgdJfXAy9y this is the subscription Id where the next invoices are getting failed
For non 3d secure cards the subscription & next invoices also getting success but why 3d secure subscription invoices are not success ?
because the bank now requires the customer to authenticate again
Looking at the Invoice
What I need to do for that regarding technically?
Yeah following this flow: https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-3
This part
https://dashboard.stripe.com/test/events/evt_1OCJ7ID6fLV2vwHggMecWFOJ for the event to listen to
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
const subscription = await stripe.subscriptions.create({
customer: customer.id,
items: [{
price: planId == 3 ? environment.priceId : environment.pId, // Replace with your product's price ID
}],
payment_behavior: 'default_incomplete',
payment_settings: { save_default_payment_method: 'on_subscription' },
expand: ['latest_invoice.payment_intent'],
off_session: "true"
});
const paymentIntent = await stripe.paymentIntents.retrieve(subscription.latest_invoice.payment_intent.id);
paymentIntent.off_session = true;
the above one is the code I am using for creating the subscription It will not work for 3ds secure cards?
Did this fail with a 3DS card on creation?
Or you mean it failed in the 2nd Invoice in next cycle?
Yeah, so ignore this code. It's a different timing. Follow the Doc I mentioned above