#rc9999999 - paymentintent
1 messages · Page 1 of 1 (latest)
Hi! We have a documentation page that explains the different ways to check the status of a PaymentIntent: https://stripe.com/docs/payments/payment-intents/verifying-status
However to process the payment, we strongly recommend to use Webhooks.
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?
stripe.retrievePaymentIntent is not a function
Are you using Stripe.js? And have you initlaized it?
const stripe = loadStripe(
"pk_test_etc etc"
);
Should loadStripe be different?
I'll attempt useStripe from the react package
Are you using React Stripe.js?
I have the following packages installed stripe, @stripe/stripe-js & @stripe/react-stripe-js
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 callstripe.retrievePaymentIntent(clientSecret)