Skip to content

Commit

Permalink
fix skip payment success status
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed May 7, 2024
1 parent e191437 commit 27db53d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/account/controllers/account_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ func (r *AccountReconciler) DeletePayment(ctx context.Context) error {
r.Logger.Error(err, "get payment details failed")
}
if status == pay.PaymentSuccess {
if payment.Status.Status == pay.PaymentSuccess {
continue
}
r.Logger.Info("payment success, post delete payment cr", "payment", payment, "amount", amount)
}
// expire session
Expand Down

0 comments on commit 27db53d

Please sign in to comment.