简体   繁体   English

为什么在测试模式下使用 react-flutterwave-rave 时回调函数不起作用?

[英]Why is the callback function not working while using react-flutterwave-rave on test mode?

I am working with flutter wave as my payment system for a web app that i am building.我正在使用颤振波作为我正在构建的网络应用程序的支付系统。 I am using react, so i used react-flutterwave-rave package from npm.我正在使用 react,所以我使用了 npm 中的 react-flutterwave-rave 包。 Everything works just fine, my problem is that after inputting the test card, the response is that 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 We could not charge this card. Reason: This is a test environment, only test cards can be used and won't call the callback function to run some other code that i want to run. We could not charge this card. Reason: This is a test environment, only test cards can be used ,不会调用回调函数运行一些我想运行的其他代码。 How can i by pass this since i am don't want to go live yet ?既然我还不想上线,我怎么能绕过这个?

There is a test card in flutterwave documentation. flutterwave 文档中有一张测试卡。 Use the card itself instead of a live card if you are in test mode and everything will work just fine如果您处于测试模式并且一切正常,请使用卡本身而不是实时卡

你的API key不对,去flutterwave复制测试公钥,然后就可以使用测试卡了

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

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