#rc9999999 - paymentintent

1 messages · Page 1 of 1 (latest)

exotic wind
#

However to process the payment, we strongly recommend to use Webhooks.

frosty olive
#

Hey soma, I tried to implement this multiple ways, I keep getting

stripe.retrievePaymentIntent is not a function

I've tried putting it by itself & inside a function. Is it supposed to stand alone?

exotic wind
#

stripe.retrievePaymentIntent is not a function
Are you using Stripe.js? And have you initlaized it?

frosty olive
#

const stripe = loadStripe(
"pk_test_etc etc"
);

#

Should loadStripe be different?

#

I'll attempt useStripe from the react package

exotic wind
#

Are you using React Stripe.js?

frosty olive
#

I have the following packages installed stripe, @stripe/stripe-js & @stripe/react-stripe-js

exotic wind
#

const stripe = loadStripe("pk_test_etc etc");
Doing this is correct for React, but I don't think this will work if you want to call stripe.retrievePaymentIntent(clientSecret)

unique mural
#

Hey there, taking over from @exotic wind

#

Can you share your code, including how/where you initialising Stripe.js and invoke the function