Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and WhyNotHugo committed Oct 2, 2023
1 parent 94f9a90 commit 8243f3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions payments/cybersource/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ def _get_error_message(self, code):
"There are insufficient funds on your card or it has reached its credit limit." # noqa: E501
)
if code == 205:
return _(
"The card you are trying to use was reported as lost or stolen." # noqa: E501
)
return _("The card you are trying to use was reported as lost or stolen.")
if code == 208:
return _(
"Your card is either inactive or it does not permit online payments. Please contact your bank to resolve this issue." # noqa: E501
Expand All @@ -262,7 +260,7 @@ def _get_error_message(self, code):
)
if code in [232, 240]:
return _(
"We are sorry but our bank cannot handle the card type you are using." # noqa: E501
"We are sorry but our bank cannot handle the card type you are using."
)
if code in [450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461]:
return _(
Expand Down

0 comments on commit 8243f3b

Please sign in to comment.