adrienverge / localstripe

A fake but stateful Stripe server that you can run locally, for testing purposes.
GNU General Public License v3.0
192 stars 59 forks source link

Support for latest stripe-js and react-stripe-js #147

Closed SamyPesse closed 3 years ago

SamyPesse commented 4 years ago

react-stripe-js is doing a validation on the stripe object: https://github.com/stripe/react-stripe-js/blob/e13fae556b1a667a5dfa1130c00d5ec4c2bc154e/src/utils/guards.ts#L16

This validation is failing because of the missing createPaymentMethod

adrienverge commented 4 years ago

Thanks for reporting, I didn't know that.

If you want to contribute, you could add a dump JavaScript method like this, and if you're motivated, implement it for real :+1:

PS: The issue title talks about "latest stripe-js". Isn't it working?