fix(medusa): Cleanup Tax lines in case of a failed cart completion (#2212)
This commit is contained in:
@@ -42,6 +42,12 @@ class TestPayService extends AbstractPaymentService {
|
||||
}
|
||||
|
||||
async authorizePayment(sessionData, context = {}) {
|
||||
if (
|
||||
sessionData.cart_id === "cart-id-tax-line-testing-for-pending-payment"
|
||||
) {
|
||||
return { data: {}, status: "pending" }
|
||||
}
|
||||
|
||||
return { data: {}, status: "authorized" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user