         couponCode: self.get "couponCode"
       xhr = EmberCLIICAjax url:url, type: "post", data: data
       xhr.then (result) ->
-        debugger
         self.set "couponApplied", true
-        self.set "finalPrice", result.amount
+        self.set "couponDiscount", result.discount
         Notify.success "Price Updated"
       , (error)->
         self.set "couponApplied", false

  priceSelector: null

  # Card details
  cardNumber: ""
  cardName: ""
  cardExpiry: ""
  cardCvc: ""
  couponCode: ""

  couponApplied: false
  finalPrice: 0

  stripe: Ember.inject.service()

  totalPriceAfterDiscount: (->
    couponApplied = @get "couponApplied"
    if couponApplied
      # Convert cents to Dollars
      return @get("finalPrice") / 100
    @get "priceSelector.totalPrice"
  ).property "priceSelector.paymentDuration", "couponApplied", "finalPrice"

  didInsertElement: ->
    new Card

      data =
        number: cardNumber
        cvc: cardCvc
        expMonth: exp_month
        expYear: exp_year
        name: cardName
        couponCode: self.get "couponCode"
        pricingId: self.get "priceSelector.pricing.id"
        paymentDuration: @get "priceSelector.paymentDuration"

      xhr = EmberCLIICAjax url:stripeUrl, type: "post", data: data
      xhr.then (result) ->
