-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
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
Blank payment modal on Android #59
Comments
Hi,
|
Yes, i think it is device specific actually, cuz when i tested on other devices it worked better but yet still the issue still persist on that device but let share the work around i made to it, to make it work |
Kindly share please, and thanks for quick response . |
` <WebView source={{ uri: go }} onNavigationStateChange={event => { i hope it helps |
Right there since it uses webview to pass all the parameter to flutterwaveinit function and catch the url in onNavigationChange event and if the redirect url matches the passed parameter, break the parameter and get the transaction status |
Thank you for the snippet, I am still trying to understand it. Please if you don't mind can I call you via Google Meet Here is my code that is not showing blank white screen on Android
|
You can actually but it'll really be good if we can fix it here to help others this is my button that triggers the flutterwaveint function to generate the url for the webview
after the state has been set pass the value of the state to the webview
listen to the onNavigationStateChange and fork the url thats returned with this function be sure to update the URL or can just use it like that
i hope it helps and if u still have any further question you can schedule a meet like you mentioned earlier |
Thank you so much! This worked. I have one more concern, on click on cancel, it redirects to google, Please do you have a fix to avoid that. If I remove the redirect_url parameter it will throw error that it is required. Regards |
You can always handle that from event. As you can see from the code i only handled success event u can use else to close the webview and handle the failure by either redirecting to another screen or display error message to the user |
Oh! The event.status will still redirect to google. Thank you bro, I appreciate! |
Lastly I just hope Flutterwave can fix the White Modal Screen issue. Cos this FlutterwaveInit method can not work for tokenized card |
The
PayWithFlutterwave
component shows white modal and when i clicked anywhere inside the modal it brings up the keyboard.i am testing on physical device on Android 7
<PayWithFlutterwave onRedirect={param => console.log(param)} options={{ authorization: 'FLWPUBK_TEST-3ffa62793f521b1e3134650390f7ea97-X', tx_ref: ref(), amount: 5000, customer: { name:
Bello Toheeb, email: '[email protected]' }, currency: 'NGN', payment_options: 'card,banktransfer,ussd', customizations: { title: 'MedXpress', description:
Session payment with Dr. Darasimi Vincent, } }} custoFlutterwaveInitmButton={(props) => ( <Button style={{ bottom: 125 }} onPress={props.onPress} mode='contained' disabled={disable}> Proceed </Button>) } />
But when i used the FlutterwaveInit method and run the returned uri with webview directly it works!
The text was updated successfully, but these errors were encountered: