Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change Dummy Credit Cards plugin configuration to operate on 4 last digits. (#8498)

Dawid Matuszczyk88a83fa1457a
diff --git a/saleor/payment/gateways/dummy_credit_card/__init__.py b/saleor/payment/gateways/dummy_credit_card/__init__.py
index 00f8ade456..c0a6ae21aa 100644
--- a/saleor/payment/gateways/dummy_credit_card/__init__.py
+++ b/saleor/payment/gateways/dummy_credit_card/__init__.py
@@ -4,12 +4,12 @@ from typing import Optional
from ... import TransactionKind
from ...interface import GatewayConfig, GatewayResponse, PaymentData, PaymentMethodInfo
-TOKEN_PREAUTHORIZE_SUCCESS = "4111111111111112"
-TOKEN_PREAUTHORIZE_DECLINE = "4111111111111111"
-TOKEN_EXPIRED = "4000000000000069"
-TOKEN_INSUFFICIENT_FUNDS = "4000000000009995"
-TOKEN_INCORRECT_CVV = "4000000000000127"
-TOKEN_DECLINE = "4000000000000002"
+TOKEN_PREAUTHORIZE_SUCCESS = "1112"
+TOKEN_PREAUTHORIZE_DECLINE = "1111"
+TOKEN_EXPIRED = "0069"
+TOKEN_INSUFFICIENT_FUNDS = "9995"
+TOKEN_INCORRECT_CVV = "0127"
+TOKEN_DECLINE = "0002"
PREAUTHORIZED_TOKENS = [TOKEN_PREAUTHORIZE_DECLINE, TOKEN_PREAUTHORIZE_SUCCESS]