diff --git a/goSellSDK.podspec b/goSellSDK.podspec index 36b5efe..8a35cf8 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 40d0899..a83c7a5 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) {