We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ThreedsWebViewControllerDelegate not called
Few weeks before it works. But now it doesn't. Could you help me please to figure out the problem here?
class MainVC: UIViewController, ThreedsWebViewControllerDelegate {
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let response = PayInvoiceResponse( approved: true, redirectLink: "auth url", successUrl: "success url", failureUrl: "fail url") showCheckout3dSecure( payResponse: response, webDelegate: self, successUrl: response.successUrl, failURL: response.failureUrl ) } func threeDSWebViewControllerAuthenticationDidSucceed( _ threeDSWebViewController: ThreedsWebViewController, token: String? ) { print("success") } func threeDSWebViewControllerAuthenticationDidFail(_ threeDSWebViewController: ThreedsWebViewController) { print("fail") }
}
extension UIViewController {
func showCheckout3dSecure( payResponse: PayInvoiceResponse, webDelegate: ThreedsWebViewControllerDelegate?, successUrl: String, failURL: String ) { guard payResponse.approved, let url = payResponse.url else { return } let threeDSWebViewController = ThreedsWebViewController( successUrl: URL(string: successUrl)!, failUrl: URL(string: failURL)! ) threeDSWebViewController.authUrl = url threeDSWebViewController.delegate = webDelegate present(threeDSWebViewController, animated: true) }
To Reproduce Copy and paste code (please use your own urls)
Expected behavior func threeDSWebViewControllerAuthenticationDidSucceed(:_) and func threeDSWebViewControllerAuthenticationDidFail(:_) can be called
func threeDSWebViewControllerAuthenticationDidSucceed(:_)
func threeDSWebViewControllerAuthenticationDidFail(:_)
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered:
It was fixed. Our server returned wrong urls for iOS client. It works now
Sorry, something went wrong.
No branches or pull requests
ThreedsWebViewControllerDelegate not called
Few weeks before it works. But now it doesn't.
Could you help me please to figure out the problem here?
class MainVC: UIViewController, ThreedsWebViewControllerDelegate {
}
extension UIViewController {
To Reproduce
Copy and paste code (please use your own urls)
Expected behavior
func threeDSWebViewControllerAuthenticationDidSucceed(:_)
andfunc threeDSWebViewControllerAuthenticationDidFail(:_)
can be calledDesktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: