stripe/react-stripe-js

[BUG]: IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment()

Closed this issue · 2 comments

ursnj commented

What happened?

Getting bellow error even im passing clientSecret properly.

Uncaught (in promise) IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment().
at re (v3:1:62596)
at e._handleMessage (v3:1:67979)
at e._handleMessage (v3:1:81593)
at v3:1:65882

Environment

Chrome 118.0

Reproduction

No response

Can you share more details about your integration? Which guide/pattern are you following?

Note that in the intent-first flow that clientSecret is required, but using the deferred-intent flow you don't need that until confirmation and instead provide appropriate configuration options for Elements and Payment Element.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.