Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Add support for showing the donation type in Authorize #26

Merged
merged 1 commit into from Jul 18, 2012

Conversation

tswicegood
Copy link
Contributor

No description provided.

@@ -127,9 +127,13 @@ def onetime_purchase(self, donation, form):
api = self.get_api()
data = form.get_data_for_charge(donation)
donor = donation.donor
if donation.donation_type:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a potential attribute error here? I feel like we saw that before – not sure if it's worth being more defensive by using hasattr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's equal to None it looks like if it's not set.

@dmclain
Copy link
Member

dmclain commented Jul 18, 2012

+1

tswicegood added a commit that referenced this pull request Jul 18, 2012
Add support for showing the donation type in Authorize
@tswicegood tswicegood merged commit ece9161 into armstrong:master Jul 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants