Created
April 25, 2011 14:16
-
-
Save thurloat/940571 to your computer and use it in GitHub Desktop.
Checkout API Thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
My calls into your API. | |
""" | |
def finalize_org(request, subscription_id, success_or_fail): | |
# HURRAH! | |
def create_org(request, org_type = None): | |
... | |
response, sub_id = gsubscribe.create_subscription( | |
plan_obj['name'], # Subscription Description | |
plan_obj['price'], # Subscription Price | |
'seats.views.finalize_org') #callback function | |
o.subscription_id = sub_id | |
o.save() | |
return response() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment