簡體   English   中英

為什么在測試模式下使用 react-flutterwave-rave 時回調函數不起作用?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM