Skip to content

Commit

Permalink
add id_valid fake method to enable beanstream credit cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris7 committed Nov 21, 2014
1 parent c404912 commit 7a2e2e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions billing/gateways/beanstream_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def convert_cc(self, credit_card, validate=True):
credit_card.number,
credit_card.month, credit_card.year,
credit_card.verification_value)
if not hasattr(card, 'is_valid'):
# there is no is_valid on the beanstream credit card object
def is_valid():
return True
card.is_valid = is_valid
if validate:
self.validate_card(card)
return card
Expand Down

0 comments on commit 7a2e2e7

Please sign in to comment.