Skip to content

Instantly share code, notes, and snippets.

@thurloat
Created April 25, 2011 14:16
Show Gist options
  • Save thurloat/940571 to your computer and use it in GitHub Desktop.
Save thurloat/940571 to your computer and use it in GitHub Desktop.
Checkout API Thing
"""
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