       event.preventDefault()
       return false
 
-    key = switch renderContext.env
-      when "production" then "pk_ZPBtv9wYtkUh6YwhwKRqL0ygAb0Q9"
-      else 'pk_Np1Nz5bG0uEp7iYeiDIElOXBBTmtD'
-    Stripe.setPublishableKey(key)
+    Stripe.setPublishableKey(@stripeKey())
 
     # disable the submit button to prevent repeated clicks
     button = $('.submit-button')

    else
      VM.raiseIntercomDialog("I'd like ask about enterprise pricing...\n\n")

  load: (hash="small") =>
    unless @loaded
      @loadPlans()
      @loadPlanFeatures()
      @loadExistingPlans()
      @loadOrganizations()
      @loadStripe()
      @loaded = true

  stripeSubmit: (data, event) ->
    number = $('.card-number').val()


  loadStripe: () =>
    $.getScript "https://js.stripe.com/v1/"
    $.getScript "https://checkout.stripe.com/v2/checkout.js"

  loadExistingPlans: () =>
    $.getJSON '/api/v1/user/existing-plans', (data) =>
      @oldTotal(data.amount / 100)
      @chosenPlan(new CI.inner.Plan(data.plan)) if data.plan
      @concurrency(data.concurrency or 1)
