Open guilhermebattaglinrentcars opened 5 days ago
Hi @guilhermebattaglinrentcars thank you for reporting, we're looking into it 👌
Hi @guilhermebattaglinrentcars,
We were not able to reproduce the issue.
You mentioned the paymentAuthorizationViewControllerDidFinish
doesn't dismiss the view controller. Whenever a user cancels the Apple Pay flow, the component calls the delegate using self.delegate?.didFail(with: ComponentError.cancelled, from: self)
and then it's up to you to dismiss the controller.
You can check the example of how the error state (user canceled) is handled in the Demo app: https://github.com/Adyen/adyen-ios/blob/v4/Demo/Common/IntegrationExample.swift#L90
Please let us know if it helps or if you have more questions.
Describe the bug SDK do not dismiss PKPaymentAuthorizationViewController modal after cancelation or payment error.
To Reproduce Steps to reproduce the behavior:
Expected behavior Dismiss modal when tap on the X (close) button
Environment
Relevant source code
paymentAuthorizationViewControllerDidFinish not calling controller dismiss