We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't understand why on onRedirect is being called twice. Here's a snippet of my code.
async function handleRedirect(params) { console.log("Params!", params); if (loading) return setLoading(true); setShowPaymentDialog(false); if (params.status == "cancelled") { return; } try { console.log("Verifying transaction", params.tx_ref); const transactionResponse = await verifyTransaction(params.tx_ref); const transaction = transactionResponse.data.transaction; setTransaction(transaction); } catch (error) { console.log("Error", error); } finally { setLoading(false); } } <FlutterwaveCheckout onAbort={handleAbort} onRedirect={handleRedirect} link={paymentLink || undefined} visible={showPaymentDialog} />
Please what am I doing wrong?
The text was updated successfully, but these errors were encountered:
Duplicate of #40
Sorry, something went wrong.
No branches or pull requests
I don't understand why on onRedirect is being called twice. Here's a snippet of my code.
Please what am I doing wrong?
The text was updated successfully, but these errors were encountered: