React and Stripe – Node throwing error when receiving data from react to send to stripe

You are seeing that error because the Stripe API is expecting that you pass the idempotency key under the idempotencyKey property, whereas in your code is being passed as idempontencyKey:

https://github.com/stripe/stripe-node/blob/f8b31945ab4cfb9fe0ee375e3308d719eb5be593/types/lib.d.ts#L117-L120

This looks to be a simple typo, the rest of your integration looks good!

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top