Adyen / adyen-ios

Adyen iOS Drop-in and Components
https://docs.adyen.com/checkout/ios
MIT License
151 stars 120 forks source link

[BUG] when trying to authenticate twice with the 3DS the app crashes and closes #1642

Closed LeandroSimoes42 closed 5 months ago

LeandroSimoes42 commented 5 months ago

Describe the bug I'm trying to implement 3ds in my application, but when I make the first purchase it opens the modal, I type the correct password and everything returns OK, but then when I try to do this flow again, before opening the 3DS modal, the application simply crashes and closes, every second attempt on the 3DS it crashes the application and closes

To Reproduce Steps to reproduce the behavior:

  1. add products to cart
  2. choose the card to pay
  3. complete the purchase
  4. modal 3DS open
  5. perform 3DS authentication
  6. flow completion
  7. add products to cart again
  8. choose the same card to pay
  9. complete the purchase
  10. before open 3DS modal the app crash e close

Expected behavior A clear and concise description of what you expected to happen.

Environment

Relevant source code The only exception I have is this:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Directory server root certificates are invalid or nil, providing the Directory server root certificates and public key is required. check [documentation](https://docs.adyen.com/online-payments/classic-integrations/api-integration-ecommerce/3d-secure/native' *** First throw call stack: ( 0 CoreFoundation 0x000000011f4b928d exceptionPreprocess + 242 1 libobjc.A.dylib 0x0000000117525894 objc_exception_throw + 48 2 Adyen3DS2 0x0000000110bb5e20 Adyen3DS2 + 97824 3 Adyen3DS2 0x0000000110bc79fe ady3ds2_uabsa + 68057 4 libdispatch.dylib 0x000000011fa23747 _dispatch_call_block_and_release + 12 5 libdispatch.dylib 0x000000011fa249f7 _dispatch_client_callout + 8 6 libdispatch.dylib 0x000000011fa34856 _dispatch_main_queue_drain + 1362 7 libdispatch.dylib 0x000000011fa342f6 _dispatch_main_queue_callback_4CF + 31 8 CoreFoundation 0x000000011f415850 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 9 CoreFoundation 0x000000011f41018b CFRunLoopRun + 2463 10 CoreFoundation 0x000000011f40f409 CFRunLoopRunSpecific + 557 11 GraphicsServices 0x0000000128f63187 GSEventRunModal + 137 12 UIKitCore 0x000000013031e3a2 -[UIApplication _run] + 972 13 UIKitCore 0x0000000130322e10 UIApplicationMain + 123 14 MadeiraMadeira Staging 0x00000001041331c0 main + 96 15 dyld 0x000000010fa703ee start_sim + 10 16 ??? 0x000000020765f366 0x0 + 8714056550 ) libc++abi: terminating due to uncaught exception of type NSException

robertdalmeida commented 5 months ago

@LeandroSimoes42 Thank you for submitting this issue.

  1. Could you let us know the checkout version that you are using?
  2. Are you using drop-in, or only the ThreeDSComponent?
LeandroSimoes42 commented 5 months ago

Hi, the checkout version is v70 and im using drop-in, and I saw a problem similar to mine but it is not answered https://github.com/Adyen/adyen-react-native/issues/419

robertdalmeida commented 5 months ago

Could you use this version - https://github.com/Adyen/adyen-ios/releases/tag/5.7.0 & let us know if you still see the issue?

goergisn commented 5 months ago

Closing due to inactivity. Please feel free to re-open.