Skip to content

Commit

Permalink
fix: ORv2-2578 Exclude WEB for payment card type check (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Jul 30, 2024
1 parent c8545a9 commit 1e4a476
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,8 @@ export class PaymentService {
}

if (
(createTransactionDto?.paymentMethodTypeCode ===
PaymentMethodTypeEnum.WEB ||
createTransactionDto?.paymentMethodTypeCode ===
PaymentMethodTypeEnum.POS) &&
createTransactionDto?.paymentMethodTypeCode ===
PaymentMethodTypeEnum.POS &&
!createTransactionDto?.paymentCardTypeCode
) {
throwBadRequestException('paymentCardTypeCode', [
Expand Down

0 comments on commit 1e4a476

Please sign in to comment.