From 0b0ef8ac7f2ca84e1eb2d02c6a5791ca1fcd62a9 Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Wed, 13 Mar 2024 03:26:11 +0700 Subject: [PATCH] Fix Atome payment --- .../Atome Payment/AtomePaymentFormController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OmiseSDK/Sources/Views/Screens/Choose Payment Methods/Other Payments/Atome Payment/AtomePaymentFormController.swift b/OmiseSDK/Sources/Views/Screens/Choose Payment Methods/Other Payments/Atome Payment/AtomePaymentFormController.swift index 47e299be..d0ba04e6 100644 --- a/OmiseSDK/Sources/Views/Screens/Choose Payment Methods/Other Payments/Atome Payment/AtomePaymentFormController.swift +++ b/OmiseSDK/Sources/Views/Screens/Choose Payment Methods/Other Payments/Atome Payment/AtomePaymentFormController.swift @@ -47,6 +47,8 @@ class AtomePaymentInputsFormController: PaymentFormController { if let viewModel = viewModel { bind(to: viewModel) } + + onSubmitButtonTappedClosure = onSubmitButtonHandler } override func updateSubmitButtonState() { @@ -64,8 +66,6 @@ private extension AtomePaymentInputsFormController { return } - hideKeyboard() - startActivityIndicator() viewModel.onSubmitButtonPressed(currentContext) { [weak self] in self?.stopActivityIndicator() } @@ -104,7 +104,6 @@ private extension AtomePaymentInputsFormController { input.text = viewModel.countryListViewModel.selectedCountry?.name input.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(onCountryInputTapped))) } - } }