-###############################################################################
+##############################################################################
 #
 # SageMathCloud: A collaborative web-based interface to Sage, IPython, LaTeX and the Terminal.
 #

        @_action('cancel_subscription', 'Cancel a subscription', {subscription_id : id, cb : cb})

    create_subscription: (plan='standard') =>
        @_action('create_subscription', 'Create a subscription', plan : plan)

    # Cancel all subscriptions, remove credit cards, etc. -- this is not a normal action, and is used
    # only when deleting an account.  We allow it a callback.

        cb()
    else
        $.getScript("https://js.stripe.com/v2/").done(->cb()).fail(->cb('Unable to load Stripe support'))

last_subscription_attempt = null

actions = store = undefined
# Create the billing actions
