Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
calm-mlin committed Aug 2, 2024
1 parent 7e8d118 commit a4783ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions localstripe/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,16 +2278,19 @@ def __init__(self, id=None, customer=None, type=None,

def _requires_authentication(self):
if self.type == 'card':
print("##### _requires_authentication:")
if self._card_number is not None:
print("##### self._card_number:", self._card_number)
return self._card_number in ('4000002500003155',
'4000002760003184',
'4000008260003178',
'4000000000003220',
'4000000000003063',
'4000008400001629')
if self.token is not None:
return self.token in (
'tok_visa_chargeDeclinedInsufficientFunds')
# if self.token is not None:
# print("##### self.token:", self.token)
# return self.token in (
# 'tok_visa_chargeDeclinedInsufficientFunds')
return False

def _attaching_is_declined(self):
Expand Down

0 comments on commit a4783ac

Please sign in to comment.