From 2fd3d165c081ab3d73f009a5d85d7bafeb5c35f7 Mon Sep 17 00:00:00 2001 From: Osama Rabie <59433049+OsamaRabie@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:38:32 +0300 Subject: [PATCH] Prevent Cancel when processing Apple Pay transaction --- goSellSDK.podspec | 2 +- .../Internal/Controllers/HeaderNavigatedViewController.swift | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/goSellSDK.podspec b/goSellSDK.podspec index 36b5efeb..8a35cf89 100644 --- a/goSellSDK.podspec +++ b/goSellSDK.podspec @@ -6,7 +6,7 @@ Pod::Spec.new do |goSellSDK| goSellSDK.name = 'goSellSDK' goSellSDK.summary = 'goSell SDK for iOS' goSellSDK.requires_arc = true - goSellSDK.version = '2.3.29' + goSellSDK.version = '2.3.30' goSellSDK.license = { :type => 'MIT', :file => 'LICENSE' } goSellSDK.author = { 'Tap Payments' => 'hello@tap.company' } goSellSDK.homepage = 'https://github.com/Tap-Payments/goSellSDK-iOS' diff --git a/goSellSDK/Core/UI/Internal/Controllers/HeaderNavigatedViewController.swift b/goSellSDK/Core/UI/Internal/Controllers/HeaderNavigatedViewController.swift index 40d08992..a83c7a5b 100644 --- a/goSellSDK/Core/UI/Internal/Controllers/HeaderNavigatedViewController.swift +++ b/goSellSDK/Core/UI/Internal/Controllers/HeaderNavigatedViewController.swift @@ -132,8 +132,9 @@ internal class HeaderNavigatedViewController: BaseViewController, NavigationCont extension HeaderNavigatedViewController: TapNavigationView.Delegate { internal func navigationViewCloseButtonClicked(_ navigationView: TapNavigationView) { - - self.close() + if !Process.shared.dataManagerInterface.isCallingPaymentAPI && !Process.shared.dataManagerInterface.isChargeOrAuthorizeInProgress { + self.close() + } } internal func navigationViewBackButtonClicked(_ navigationView: TapNavigationView) {