Skip to content

Commit

Permalink
Cancel payment intent when "Mark ... as complete" tapped
Browse files Browse the repository at this point in the history
  • Loading branch information
samiuelson committed Jan 8, 2025
1 parent 6b7781f commit 9deb05e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ class WooPosTotalsViewModel @Inject constructor(
uiState.value = InitialState
}

is ParentToChildrenEvent.OrderSuccessfullyPaid -> showSuccessfulPaymentState(
event.paymentMethod
)
is ParentToChildrenEvent.OrderSuccessfullyPaid -> {
cancelPaymentAction()
showSuccessfulPaymentState(event.paymentMethod)
}

is ParentToChildrenEvent.ItemClickedInProductSelector -> Unit
}
Expand Down

0 comments on commit 9deb05e

Please sign in to comment.