paypal / paypalcheckout-ios

Need to add Native Checkout to your iOS Application? We can help!
http://www.paypal.com
Other
69 stars 55 forks source link

[🐞] Paypal dialogue hangs on screen with "Securely logging you in..." #187

Open Mattheisen opened 1 month ago

Mattheisen commented 1 month ago

🐞 Describe the Bug

We are using SDK version 1.3.0 in our iOS app for paypal payments. The checkout happens on our backend server without any issue. Then the paypal dialogue is started in the app and it works at first OK with all screens about the account login. After this the following screen appears:

image

...and from here the control does not return back to into our app. The only possible user reaction is then to close the app and restart. When the app is restarted our app logic provides the option to repeat the payment. When this is chosen and the paypal payment dialogue started, it works fine: The logging credentials are then still available and the dialogue continues to the screen with "Pulling up your digital wallet". Then the payment can be finished.

🔬 Minimal Reproduction

This error is appearing only randomly. It cannot be reproduced reliably. I have made many tests in order to find a pattern but I did not find one. But the following can be said: It is more likely to happen on a physical device than on a simulated device. It is more likely to happen when it is the first approach for a paypal payment on the device. Successive payments work without problems. In the successful case, the screen above (with "Securely logging you in...") appears as well but only for a fraction of a second and then the dialogue continues to "Pulling up your digital wallet". I can increase the likeliness of the error by clearing the cache of paypal in the device's Safari browser. The error is independent from the account I use (it can be a test account for the sandbox or a true account in the production environment.)

😕 Actual Behavior

Paypal dialogue is stuck on screen with "Securely logging you in..."

🤔 Expected Behavior

After short appearance of the screen with "Securely logging you in...", the process shall continue to the screen "Pulling up your digital wallet".

🌍 Environment

➕ Additional Context

In case it helps: I had a similar problem before the upgrade to 1.3.0 with version 0.110.0 and this problem is described in stackoverflow: https://stackoverflow.com/questions/78671118/why-does-a-button-click-in-paypal-ui-crash-my-ios-app

github-actions[bot] commented 1 month ago

Thank you for reaching out to the Native Checkout SDK team. This integration path is now inactive for new merchants. If you are an existing merchant, please contact us here for further assistance.

New merchants can integrate the Native Checkout experience via the Braintree iOS SDK or PayPal iOS SDK. For more information please see their respective developer documentation linked below.