From 7a2e2e761379fc980503f2613fad2383c51c4540 Mon Sep 17 00:00:00 2001 From: Chris Mitchell Date: Fri, 21 Nov 2014 15:50:58 -0500 Subject: [PATCH] add id_valid fake method to enable beanstream credit cards --- billing/gateways/beanstream_gateway.py | 5 +++++ 1 file changed, 5 insertions(+) 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