diff --git a/payeezy_python/example/payeezy/api_methods.py b/payeezy_python/example/payeezy/api_methods.py index f691baf..1b11ac5 100644 --- a/payeezy_python/example/payeezy/api_methods.py +++ b/payeezy_python/example/payeezy/api_methods.py @@ -95,7 +95,7 @@ def makePayload(self, amount=None, currency_code=None, card_type=None, cardholde if description is None: description = transactionType+'transaction for amount: '+amount - if (transactionType == ('authorize' or 'purchase')): + if transactionType == 'authorize' or transactionType == 'purchase': if card_number is None: raise ValueError, 'card number cannot be nil'