Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created November 21, 2011 23:14
Show Gist options
  • Save andymckay/1384312 to your computer and use it in GitHub Desktop.
Save andymckay/1384312 to your computer and use it in GitHub Desktop.
diff --git a/apps/addons/views.py b/apps/addons/views.py
index 79d1056..7e82a78 100644
--- a/apps/addons/views.py
+++ b/apps/addons/views.py
@@ -561,10 +561,9 @@ def purchase_complete(request, addon, status):
log.debug('Paypal returned: %s for paykey: %s'
% (result, con.paykey[:10]))
if result == 'COMPLETED':
- # Markup the contribution suitably
- con.type = amo.CONTRIB_PURCHASE
- con.uuid = None
- con.save()
+ status = 'complete'
+ else:
+ status = 'error'
response = jingo.render(request, 'addons/paypal_result.html',
{'addon': addon,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment