fix: Show the Stripe payment error message and change the status to 400 for charge card issues (#22463)

* fix: show stripe payment error message

* Update PaymentService.ts

* Update chargeCard.handler.ts

* Update chargeCard.handler.ts

* Update PaymentService.ts

* update

* update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-07-16 09:45:49 +00:00
1 parent a84e8987cb
commit fb59342de4
6 files changed
+48 -13

No files matched your search

@@ -16,6 +16,7 @@ const test400Codes = [
ErrorCode.BookingNotAllowedByRestrictionSchedule,
ErrorCode.BookerLimitExceeded,
ErrorCode.BookerLimitExceededReschedule,
ErrorCode.ChargeCardFailure,
];
const test404Codes = [
@@ -33,7 +34,6 @@ const test409Codes = [
ErrorCode.NotEnoughAvailableSeats,
ErrorCode.BookingConflict,
ErrorCode.PaymentCreationFailure,
ErrorCode.ChargeCardFailure,
];
describe("getServerErrorFromUnknown", () => {