简体   繁体   English

使条纹不适用于测试信用卡号

[英]make stripe to not work on testing credit card number

I just made a simple checkout with stripe and I tested it with test credit card number: 我只用条纹进行了简单的结帐,并用信用卡号进行了测试:

424242424242

and it worked but when I will switch to development mode I need stripe to not consider every test credit card number as valid, so do I need to include some additional code or what do I need to do? 它可以正常工作,但是当我切换到开发模式时,我需要删除条带,不要将每个测试信用卡号都视为有效,所以我是否需要包括一些其他代码,或者该怎么做?

Testing with Stripe is very simple. 使用Stripe进行测试非常简单。

https://stripe.com/docs/testing https://stripe.com/docs/testing

And no, if you switch to production Stripe will work just fine. 不,如果您转投生产, Stripe可以正常工作。 And it will not consider an invalid credit card as valid. 并且它将不会认为无效的信用卡是有效的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM