Skip to content

Commit 7874216

Browse files
Merge pull request #20078 from mozilla/PAY-3157
feat(payments-next): Handle expected card-declined errors
2 parents 8540981 + e23e25d commit 7874216

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libs/payments/cart/src/lib/util/throwIntentFailedError.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export function throwIntentFailedError(
6464
}
6565
}
6666
case 'incorrect_cvc':
67+
case 'incorrect_number':
68+
case 'incorrect_zip':
69+
case 'invalid_cvc':
6770
throw new IntentCardDeclinedError(cartId, paymentIntentId, intentType);
6871
case 'expired_card':
6972
throw new IntentCardExpiredError(cartId, paymentIntentId, intentType);

0 commit comments

Comments
 (0)