DEV Community

Melissa1181
Melissa1181

Posted on

Answer: StripeJS createToken requires a secret key instead of publishable key

The problem was with the requested scope using Stripe Connect. It was set to "read_only", while I needed "read_write".

Stripe support acknowledged the fact that the current error message is not intuitive at all, and have passed the information to the engineering team so it is less confusing for developers.

Top comments (0)