test:keep cart after payment failure
This commit is contained in:
@@ -179,7 +179,8 @@ class PaymentService {
|
||||
|
||||
// Handle unsuccessful payment status
|
||||
if (status !== "OK") {
|
||||
await this.handleFailedPayment(paymentData._id.toString(), order._id, orderItems, session);
|
||||
// user can retry
|
||||
// await this.handleFailedPayment(paymentData._id.toString(), order._id, orderItems, session);
|
||||
return this.buildPaymentResponse(status, PaymentMessage.PaymentNotSuccessful, paymentData._id.toString(), order._id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user