[英]Why is the spyOn function in the test not working with sendGrid?
[英]Why is the callback function not working while using react-flutterwave-rave on test mode?
我正在使用颤振波作为我正在构建的网络应用程序的支付系统。 我正在使用 react,所以我使用了 npm 中的 react-flutterwave-rave 包。 一切正常,我的问题是输入测试卡后,响应是We could not charge this card. Reason: This is a test environment, only test cards can be used
We could not charge this card. Reason: This is a test environment, only test cards can be used
,不会调用回调函数运行一些我想运行的其他代码。 既然我还不想上线,我怎么能绕过这个?
flutterwave 文档中有一张测试卡。 如果您处于测试模式并且一切正常,请使用卡本身而不是实时卡
你的API key不对,去flutterwave复制测试公钥,然后就可以使用测试卡了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.