Adyen / adyen-3ds2-ios

Other
18 stars 12 forks source link

Challenge shopper screen stuck with loading #8

Closed Venkat1128 closed 5 years ago

Venkat1128 commented 5 years ago

Hi Team, Call to below code resulted in screen with loading icon for indefinite time.

*[transaction performChallengeWithParameters:parameters completionHandler:^(ADYChallengeResult result, NSError *error) {

                                   if (result) {}**

I have sent a mail to your support team , but unfortunately yet to get response form them. Please find the screenshot for the reference.

Simulator Screen Shot - iPhone X - 2019-08-29 at 07 03 40

joostvandijk commented 5 years ago

Hi @Venkat1128,

I think this is the same issue as https://github.com/Adyen/adyen-3ds2-ios/issues/7. Please ensure you keep a strong reference to ADYTransaction during the challenge.

Best,

Joost

Venkat1128 commented 5 years ago

screen got loaded couple of times .. but most of the times stuck with loading icon? I can see ADYTransaction has reference before making challenge call.

joostvandijk commented 5 years ago

The transaction has to be kept in memory until the completion handler is called. Please ensure that is the case.

Venkat1128 commented 5 years ago

Thanks @joostvandijk your right transaction is deallocated in memory .. I have made a change its working now .. Thanks a lot