diff --git a/billing/gateways/beanstream_gateway.py b/billing/gateways/beanstream_gateway.py index 95f2ded5..14315d18 100644 --- a/billing/gateways/beanstream_gateway.py +++ b/billing/gateways/beanstream_gateway.py @@ -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