#seekay369

1 messages · Page 1 of 1 (latest)

candid mossBOT
earnest sparrow
#

Hi there, do you have the PaymentIntent ID?

bold viper
#

pm_1NgJD8Do5Duz2o7HFz207TJZ

#

oh wait

#

let me check

#

pi_3NgJDCDo5Duz2o7H4N0rHz1z

earnest sparrow
#

OK, this payment_intent is in requires_action state, so you need to call stripe.confirmCardPayment() at your frontend to start the 3DS flow.

bold viper
#

it is available in reactjs?

earnest sparrow
#

Yes, you can call this function in react as well.

bold viper
#

call confirmCardPayment after get payment intent right?

#

so no need to redirect the url to iframe?

earnest sparrow
#

You don't need to handle the 3DS redirect URL by yourself, the Stripe.js will take care for you.

bold viper
#

I see let me try.

#

thanks alot

#

stripe
.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
payment_method: {
card: cardElement,
billing_details: {
name: 'Jenny Rosen',
},
},
})
.then(function(result) {
// Handle result.error or result.paymentIntent
});

PAYMENT_INTENT_CLIENT_SECRET is full json or only id?

earnest sparrow
#

Payment_intent_client_secret is just a string.

bold viper
#

pi_3NgJVCDo5Duz2o7H3Id4MTkQ

Hi can you please help me check this? Many sorry

earnest sparrow
#

look like you also passed lots of unknown params in.

#

Can you show me your code?

bold viper
#

Sorry I managed to make it already

#

Thank you for your support