This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user