diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodEvent.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodEvent.kt index ff7ae546a86..a984704284b 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodEvent.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodEvent.kt @@ -36,11 +36,6 @@ data class NavigateToOrderDetails( val orderId: Long ) : MultiLiveEvent.Event() -sealed class ReturnResultToWooPos : MultiLiveEvent.Event() { - data object Success : ReturnResultToWooPos() - data object Failure : ReturnResultToWooPos() -} - data class NavigateToTapToPaySummary( val order: Order ) : MultiLiveEvent.Event() diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodFragment.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodFragment.kt index c762fafe5e0..17333b63d31 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodFragment.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodFragment.kt @@ -34,7 +34,6 @@ import com.woocommerce.android.ui.payments.methodselection.SelectPaymentMethodVi import com.woocommerce.android.ui.payments.methodselection.SelectPaymentMethodViewState.Success import com.woocommerce.android.ui.payments.scantopay.ScanToPayDialogFragment import com.woocommerce.android.ui.payments.taptopay.summary.TapToPaySummaryFragment -import com.woocommerce.android.ui.woopos.cardreader.WooPosCardReaderActivity import com.woocommerce.android.util.ChromeCustomTabUtils import com.woocommerce.android.util.UiHelpers import com.woocommerce.android.viewmodel.MultiLiveEvent.Event.ShowDialog @@ -276,13 +275,6 @@ class SelectPaymentMethodFragment : BaseFragment(R.layout.fragment_select_paymen ) ) } - - is ReturnResultToWooPos -> { - parentFragmentManager.setFragmentResult( - WooPosCardReaderActivity.WOO_POS_CARD_PAYMENT_REQUEST_KEY, - Bundle() - ) - } } } } diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodViewModel.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodViewModel.kt index 58b6fc4688d..c78a037ccdc 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodViewModel.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/methodselection/SelectPaymentMethodViewModel.kt @@ -321,10 +321,6 @@ class SelectPaymentMethodViewModel @Inject constructor( flow = cardReaderPaymentFlowParam.toAnalyticsFlowName(), ) } - if (cardReaderPaymentFlowParam.paymentType == WOO_POS) { - val result = if (connected) ReturnResultToWooPos.Success else ReturnResultToWooPos.Failure - triggerEvent(result) - } } fun onCardReaderPaymentCompleted() {