Nets-mobile-acceptance / Netaxept-Android-SDK

PiA Netaxept Android SDK is a library that provides the native In-App interaction to perform Netaxept payments directly from an app on Android devices while minimizing PCI DSS requirements for you.
31 stars 15 forks source link

net::ERR_CONNECTION_REFUSED seen on Android for card payment & saving card #57

Closed Vasant-Patel closed 2 years ago

Vasant-Patel commented 2 years ago

Hi,

Some of our customer are seeing the issue on Android when paying with card or saving a card and performing SCA flow. It seems once they authorize the redirection fails with net::ERR_CONNECTION_REFUSED on SDK side

We are using localhost as our host for redirectUrl and while it works for most users we are seeing some complains from Android users where final redirection seems to fail with ERR_CONNECTION_REFUSED

We have seen similar redirection issues on Android webview in other context where detecting redirection based on some url fails with ERR_CONNECTION_REFUSED as webview doesn't stop loading

Case: Android 9 (api version 28) samsung Galaxy A7 (SM-A750FN)

err_connection_refused Screenshot_20220515-171049

Miss-PiA commented 2 years ago

Hi @Vasant-Patel Please provide the following details so that we have a better understanding of the issue

Miss-PiA commented 2 years ago

Hi @Vasant-Patel are you still facing this issue or it has been resolved on your end? If it is resolved, is it safe to close this issue?

Vasant-Patel commented 2 years ago

Hi, Apologies for late reply

Its difficult to reproduce this issue but the issue has been seen with Android SDK version 2.2.0

The issue appears to be in final redirection after 3DS flow which causes the flow to fail in ERR_CONNECTION_REFUSED which mean Nets SDK is unable to detect the success case and ends with the mentioned error

We could upgrade to latest SDK and monitor if this issue still persists but its certainly an issue faced by few of our customers mostly android. Note: we are already using 2.6.3 in our latest release

BuildManager-Nets commented 2 years ago

Hi It seems like you are trying to access “localhost” which is usually device’s local server but “localhost” is not recognizable by WebView that’s why you are getting that error. Request you to please try the valid URL

Miss-PiA commented 2 years ago

Hi

Is the issue resolved at your end? And is it okay to close this issue?

Miss-PiA commented 2 years ago

Closing this issue because of no activity in a long time. Please feel free to reopen the issue, if you face problem regarding the same issue.