6 ms·
By the way, stripe has a cool new project, "stripe-mock": https://github.com/stripe/stripe-mock https://github.com/stripe/stripe-mock It lets you run a local s
by git-pull 9y ago
By the way, stripe has a cool new project, "stripe-mock": https://github.com/stripe/stripe-mock https://github.com/stripe/stripe-mock
It lets you run a local stripe API on your machine. I've got high hopes in it. This could be the cure to building resilient stripe tests on local machines.
The maintainer @brandur seems to know his stuff in regards to rest apis.
- lawrencewu 9y agoOh god, thanks so much for this. I've literally just been testing on prod and praying that it works.
- bballer 9y agoYou know you can generate a API test token and use one of test card numbers for all your testing purposes. There is a toggle in your main dashboard which will let you switch between sandbox/test mode and production for viewing charges etc.
- diggan 9y agoThis assumes you have internet connection always when developing/running tests, which is not always the case. I always to rely on local tools/endpoints so when I'm offline, I can still continue working. Don't use Stripe as much as before but I definitely I wished I had this mock when implementing Stripe in applications I worked on.
- frakkingcylons 9y agoAlso is pretty active on his (very good, IMO) technical blog: https://brandur.org/articles https://brandur.org/articles