Skip to content

Commit

Permalink
Merge pull request #19 from FIAP-3SOAT-G15/fix-payment-confirmation
Browse files Browse the repository at this point in the history
Fix payment confirmation
  • Loading branch information
wellyfrs authored May 21, 2024
2 parents eb58b3b + 17ffc1d commit b5d1792
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PaymentService(
}

override fun confirmPayment(paymentId: String): Payment {
val confirmedPayment = changePaymentStatus(paymentId = paymentId, newStatus = PaymentStatus.FAILED)
val confirmedPayment = changePaymentStatus(paymentId = paymentId, newStatus = PaymentStatus.CONFIRMED)
confirmOrderUseCase.confirmOrder(confirmedPayment.orderNumber)
return confirmedPayment
}
Expand Down

0 comments on commit b5d1792

Please sign in to comment.