You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-native-paystack-webview does not run onSuccess function after successful transaction...
please observe the code below...
<PaystackWebView
showPayButton={false}
currency="NGN"
channels="card"
paystackKey="pk_test_****************************"
amount={amount}
billingEmail={email}
billingMobile={phone}
billingName={fullname}
ActivityIndicatorColor="green"
onSuccess={(tranRef) => {
// do something...
console.log('transaction ref', tranRef);
}}
onCancel={(res) => {
// show a message (issue here)
}}
autoStart={false}
ref={childRef}
/>
Note: this code inits the popup window...
i don't know what am doing wrong here. But if the payment is successful or not only the onCancel function runs...
The text was updated successfully, but these errors were encountered:
Hello
I'm also experiencing the same issues, when ever i make a request it shows Payment Successful but after that the onCancel is called instead of onSuccess
@dihweng I am not quite sure why that is the case for you, but I submitted a PR that exposes a handleWebViewMessage method, you can use that to see the raw event being sent from the webView. Plus, the main Paystack library that is being used does not expose an onError handler
react-native-paystack-webview does not run onSuccess function after successful transaction...
please observe the code below...
<PaystackWebView
showPayButton={false}
currency="NGN"
channels="card"
paystackKey="pk_test_****************************"
amount={amount}
billingEmail={email}
billingMobile={phone}
billingName={fullname}
ActivityIndicatorColor="green"
onSuccess={(tranRef) => {
// do something...
console.log('transaction ref', tranRef);
}}
onCancel={(res) => {
// show a message (issue here)
}}
autoStart={false}
ref={childRef}
/>
Note: this code inits the popup window...
i don't know what am doing wrong here. But if the payment is successful or not only the onCancel function runs...
The text was updated successfully, but these errors were encountered: