Skip to content

Commit

Permalink
[Woo POS] Consider an order that is already paid as success in `Colle…
Browse files Browse the repository at this point in the history
…ctOrderPaymentUseCase` (#13178)
  • Loading branch information
jaclync authored Jun 28, 2024
2 parents a9a8624 + 0555475 commit 656b86c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ final class CardPresentPaymentsAlertPresenterAdaptor: CardPresentPaymentAlertsPr

func present(viewModel eventDetails: CardPresentPaymentEventDetails) {
switch eventDetails {
case .paymentError(error: CollectOrderPaymentUseCaseError.orderAlreadyPaid, _, _),
.paymentErrorNonRetryable(error: CollectOrderPaymentUseCaseError.orderAlreadyPaid, _):
paymentEventSubject.send(.show(eventDetails: .paymentSuccess(done: {})))
case .paymentError(let error, let tryAgain, let cancelPayment):
paymentEventSubject.send(.show(
eventDetails: .paymentError(
Expand Down

0 comments on commit 656b86c

Please sign in to comment.