     $.ajax
       url: "#{sd.API_URL}/charges"
       type: 'POST'
-      data: stripeToken: token
+      data:
+        stripeToken: token
+        coupon: sd.COUPON
       success: (response) =>
         @$('.premium--status').addClass('is-successful')
         @$('.premium--status .inner').text "Registration successful."

    @handler.open
      name: 'Are.na'
      description: '1 year / Premium subscription'
      amount: 4500

    @$('.premium--status').addClass('is-active')


analytics = require '../../../lib/analytics.coffee'

module.exports = class PremiumView extends Backbone.View
  price: 4500

  events:
    'click .button--add': 'openCheckout'

  initialize: ->
    @price = 2750 if sd.COUPON

    @handler = StripeCheckout.configure
      key: sd.STRIPE_PUBLISHABLE_KEY
      image: 'https://s3.amazonaws.com/stripe-uploads/acct_14Lg6j411YkgzhRMmerchant-icon-1432502887007-arena-mark.png'
