#gopi_67606

1 messages · Page 1 of 1 (latest)

simple tangleBOT
#

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.

rustic gull
#

Hii

sterile plover
#

Hi how can we help?

rustic gull
#

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?

sterile plover
#

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

rustic gull
#

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 ?

sterile plover
#

because the bank now requires the customer to authenticate again

#

Looking at the Invoice

rustic gull
#

What I need to do for that regarding technically?

sterile plover
#

This part

rustic gull
#

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?

sterile plover
#

Did this fail with a 3DS card on creation?

#

Or you mean it failed in the 2nd Invoice in next cycle?

rustic gull
#

I mean second invoice is getting failed

#

First subscription invoice is success

sterile plover
#

Yeah, so ignore this code. It's a different timing. Follow the Doc I mentioned above