#arshad.cm
1 messages · Page 1 of 1 (latest)
Hello there
Sounds like you aren't doing one of the two things mentioned in the error.
What does your <Elements/> component look like and what options are you passing to it?
<Elements stripe={stripePromise}>
Are you following a specific doc/guide?
I am following a git repo- https://github.com/matthewling-stripe/react-stripe-payment-element/blob/main/client/src/CheckoutForm.js
Okay so you see in https://github.com/matthewling-stripe/react-stripe-payment-element/blob/main/client/src/Payment.js how it passes clientSecret to options ?
<Elements stripe={stripePromise} options={{ clientSecret }}>
That is your issue
yes I passed those things before. But While I am pconfirming the payment getting errror
That is not what the error indicates
Have you logged out your clientSecret that you are passing to <Elements/>?
Invalid value for stripe.confirmCardPayment intent secret: value should be a client_secret string. You specified: [object Object].
Yes I logged it and it is like expected
Okay that error is different from the original one you posted