From 5f270eeabe988a4e6d4460a9edca7bd1bd845a87 Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Wed, 20 Mar 2024 12:31:38 +0700 Subject: [PATCH] Custom Credit Card form dismiss is fixed --- ExampleApp/Views/ProductDetailViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExampleApp/Views/ProductDetailViewController.swift b/ExampleApp/Views/ProductDetailViewController.swift index ecba3729..40e6e8ed 100644 --- a/ExampleApp/Views/ProductDetailViewController.swift +++ b/ExampleApp/Views/ProductDetailViewController.swift @@ -85,7 +85,7 @@ extension ProductDetailViewController: AuthorizingPaymentViewControllerDelegate extension ProductDetailViewController: CustomCreditCardPaymentControllerDelegate { func creditCardFormViewController(_ controller: CustomCreditCardPaymentController, didSucceedWithToken token: Token) { - omiseSDK.dismiss { + dismissForm { let alertController = UIAlertController( title: "Token Created", message: "A token with id of \(token.id) was successfully created. Please send this id to server to create a charge.", @@ -98,7 +98,7 @@ extension ProductDetailViewController: CustomCreditCardPaymentControllerDelegate } func creditCardFormViewController(_ controller: CustomCreditCardPaymentController, didFailWithError error: Error) { - omiseSDK.dismiss { + dismissForm { let alertController = UIAlertController( title: "Error", message: error.localizedDescription,