           console.log "Open video..."
 
       @payment = new PaymentWidget
-        planCode        : '#{code}'
+        planCode        : '#{planCode}'
         contentCssClass : 'modal-clean-green'
         content         : @content
 

class GroupProductListItem extends KDListItemView
  constructor:(options,data)->
    super options, data

    {code} = @getData()

    codeCheck =
      """
      KD.remote.api.JPaymentSubscription.checkUserSubscription '#{code}', (err, subscriptions)->
        if not err and subscriptions.length > 0
          console.log "User is subscribed to the plan."
      """

    codeGet =
      """
      KD.remote.api.JPaymentPlan.fetchPlanByCode '#{code}', (err, plan)->
        if not err and plan
          plan.fetchSubscriptions (err, subs)->
            console.log "Subscribers:", subs

  pistachio:->
    product = @getData()

    planCode  = product.planCode
    title     = product.title
    price     = (product.amount / 100).toFixed(2)

    subscriptionType =
      if product.subscriptionType is 'single'
