add card owner
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-15 12:55:51 +03:30
parent 5a07ea13ed
commit fb7671338a
8 changed files with 47 additions and 4 deletions
@@ -83,6 +83,10 @@ export class PaymentsService {
throw new BadRequestException(PaymentMessage.CARD_NUMBER_REQUIRED);
}
if (pm.method === PaymentMethodEnum.CreditCard && !pm.cardOwner?.trim()) {
throw new BadRequestException(PaymentMessage.CARD_OWNER_REQUIRED);
}
return {
order,
amount: order.total,