Skip to content
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

Internet availability #6

Open
ammarjavedofficial opened this issue Mar 6, 2024 · 2 comments
Open

Internet availability #6

ammarjavedofficial opened this issue Mar 6, 2024 · 2 comments

Comments

@ammarjavedofficial
Copy link

When invoking the "initializePayment" method, it should additionally provide the status indicating whether an internet connection is available.

@arshmancodes
Copy link
Owner

@ammarjavedofficial Internet connection availability check is not in the scope of payment module.
Internet connectivity is checked outside the payment module where it is going to be implemented.

@ammarjavedofficial
Copy link
Author

When calling the "initializePayment" method, it's recommended to leverage the capabilities of the dio package. By catching and handling SocketException within this method, you can facilitate a more straightforward approach to internet connectivity checking, as opposed to implementing additional algorithms for the same purpose. This not only enhances efficiency but also ensures a more streamlined and reliable payment initialization process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants