From b615452e531e2daca47fe4c497f0c420088434cd Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Fri, 22 Nov 2013 15:08:29 -0700 Subject: [PATCH] Handle invalid expiration date. If a user enter an expiration more than 5 year in the future, Authorize.net raises this error. --- dinero/gateways/authorizenet_gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dinero/gateways/authorizenet_gateway.py b/dinero/gateways/authorizenet_gateway.py index 7a68537..d782ba0 100644 --- a/dinero/gateways/authorizenet_gateway.py +++ b/dinero/gateways/authorizenet_gateway.py @@ -159,6 +159,7 @@ def get_first_of(dict, possibilities, default=None): RESPONSE_CODE_EXCEPTION_MAP = { + '7': [ExpiryError], '8': [ExpiryError], '6': [InvalidCardError], '37': [InvalidCardError],