Skip to content

bug fix when checking transactionType value#29

Open
brianjp93 wants to merge 1 commit intopayeezy:masterfrom
brianjp93:bug-python_purchase
Open

bug fix when checking transactionType value#29
brianjp93 wants to merge 1 commit intopayeezy:masterfrom
brianjp93:bug-python_purchase

Conversation

@brianjp93
Copy link

I believe that the line I changed had to have been a mistake.
('authorize' or 'purchase') evaluates to 'authorize' in python

so the line

if (transactionType == ('authorize' or 'purchase')):

is effectively just

if transactionType == 'authorize':

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant