klarna / klarna-mobile-sdk

Klarna Mobile SDK for iOS
https://docs.klarna.com/mobile-sdk/ios/
Apache License 2.0
29 stars 12 forks source link

Registration of card as payment method stuck at "Waiting for authentication" #145

Closed AmyNgithub closed 2 years ago

AmyNgithub commented 2 years ago

Describe the bug The registration of a card as payment method gets stuck after successfully authenticating with BankID and returning to the app from external browser (which opened this page https://cards-eu.klarna.com/gui/modern-13.1.0//pay-challenger.html?init3ds=…) In the app the Klarna popup shows “Väntar på autentisering” (Waiting for authentication) and a loading animation (which is moving) but it never goes away. However if I press the “X” and close the Klarna popup the process recovers and the card gets successfully registered.

To Reproduce Steps to reproduce the behavior:

  1. Start the Klarna registration process
  2. Choose card as payment method
  3. Fill in all the information
  4. Click on “Betala” (Pay)
  5. Wait for redirect to external browser and for to load https://cards-eu.klarna.com/gui/modern-13.1.0//pay-challenger.html?init3ds=…
  6. Manually open the BankID app and sign
  7. Manually open the external browser again
  8. Click on “Slutför betalning”
  9. Wait for automatic redirect back to my app
  10. The Klarna popup is now showing “Väntar på autentisering” (Waiting for authentication) and loading animation
  11. Then you get stuck here indefinitely
    1. Or until closing the Klarna popup and then somehow triggering the success of the registration process

Expected behavior The Klarna popup will show “Väntar på autentisering” (Waiting for authentication) and loading animation for a short period of time. After the registration is successful the Klarna popup will close automatically and the app can continue.

Screenshots https://i.postimg.cc/MGgy3vYm/IMG-2937.png

Device and version:

Merchant Name Kalmar länstrafik, GoOn

Impact Level High. It’s blocking the required update to 2.1.6 and 2.1.7 for iOS and Android respectively. This update needs to be done by this week because of Klarnas deadline (15/7) for update being placed in the middle of Swedish summer vacations.

Additional context

AmyNgithub commented 2 years ago

This has been resolved on Klarna's side. I did not need to update or make any changes to the app for the fix to take effect. Thanks!