diff --git a/payeezy_python/example/payeezy/api_methods.py b/payeezy_python/example/payeezy/api_methods.py index f691baf..1a1e0d2 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 in ['authorize', 'purchase']: if card_number is None: raise ValueError, 'card number cannot be nil'