#Aamir

1 messages · Page 1 of 1 (latest)

unkempt cradleBOT
frozen solstice
#

Hi there

mystic cobalt
#

Hi

frozen solstice
#

So your promise isn't resolving here?

#

Can you show me your code?

mystic cobalt
#

sure, one sec

#

function confirmStripe(client_secret,url){
stripe.confirmCardPayment(
client_secret,
{
return_url: url
},
// Disable the default next action handling.
{handleActions: false}
).then(function(result) {
alert(result);
if(result.paymentIntent.status === 'requires_source_action'){
$('#3did').attr('src',result.paymentIntent.next_action.redirect_to_url.url)
$('#3dconfirm').show();
}
});
}

#

client_secret and url can be seen in browser debug

frozen solstice
#

Okay and are you testing 3DS here?

mystic cobalt
#

yes

frozen solstice
#

Can you provide a PaymentIntent ID that you are testing with

mystic cobalt
#

ok one sec

#

pi_3MZZqNHmasT8jH4F1U91xGoC

#

or

#

pi_3MZbQUHmasT8jH4F1ESaBeP3

frozen solstice
#

Okay so that PI never was confirmed at all client-side

#

Ah the first one was

#

But not the second

#

Looking at the first, one sec

mystic cobalt
#

ok

frozen solstice
#

Okay so that first one successfully went through 3DS

#

So your promise did resolve

#

And it went through your code: if(result.paymentIntent.status === 'requires_source_action'){ $('#3did').attr('src',result.paymentIntent.next_action.redirect_to_url.url) $('#3dconfirm').show(); } }); }

#

So looks to be working fine

mystic cobalt
#

you think it should work

frozen solstice
#

I mean that example did work?

#

Not sure what you mean

mystic cobalt
#

I mean you don't see any issue in payment intent?

frozen solstice
#

Ahh okay I see the confusion here

#

This went through an "attempt acknowledged" 3DS

#

So it never actually needed to manually complete 3DS

#

But yeah it still went through the whole process fine

#

The reason it did that is because you have request_three_d_secure: "any", set on your PI creation

mystic cobalt
#

I think we need to give other credit card where it is needed to confirm

frozen solstice
#

Yep I would run a test with an actual 3DS card

#

But also this scenario will still happen