       type: "POST"
       data: JSON.stringify
         token: response
-        matrix: @matrix()
+        orgs: @organizationMatrix()
+        team_plans: @userMatrix()
       success: () =>
         @paid true
     )

  selectPlan: (plan) =>
    @selectedPlan(plan)
    @collaborators(({login: v, plan: ko.observable(plan)} for v in @teamMembers()[@selectedOrganization()]))


    SammyApp.setLocation "/account/plans/#{@selectedOrganization()}/edit"



        total += c.plan().price if c.plan()?
      total / 100


    @userMatrix = @komp =>
      users = {}
      for login, plan of @collaborators()
        users[login] = plan.id
      users

    @organizationMatrix = @komp =>
      orgs = {} # TODO: merge with existing plans
      orgs[@selectedOrganization()] = {add_new: false, default: @selectedPlan()}
      orgs


    # use computed observable because knockout select boxes make it hard to do otherwise
