Commit c0b03f88 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Pass all required options for purchase

parent 955bd323
...@@ -31,7 +31,21 @@ export default { ...@@ -31,7 +31,21 @@ export default {
confirmOrderParams: { confirmOrderParams: {
query: stateQuery, query: stateQuery,
update(data) { update(data) {
const { customer } = data;
return { return {
setup_for_company: data.isSetupForCompany,
selected_group: data.subscription.namespaceId,
new_user: data.isNewUser,
customer: {
country: customer.country,
address_1: customer.address1,
address_2: customer.address2,
city: customer.city,
state: customer.state,
zip_code: customer.zipCode,
company: customer.company,
},
selected_group: data.subscription.namespaceId, selected_group: data.subscription.namespaceId,
subscription: { subscription: {
plan_id: data.selectedPlanId, plan_id: data.selectedPlanId,
......
...@@ -32,7 +32,7 @@ class SubscriptionsController < ApplicationController ...@@ -32,7 +32,7 @@ class SubscriptionsController < ApplicationController
def buy_minutes def buy_minutes
return render_404 unless Feature.enabled?(:new_route_ci_minutes_purchase, default_enabled: :yaml) return render_404 unless Feature.enabled?(:new_route_ci_minutes_purchase, default_enabled: :yaml)
@group = current_user.manageable_groups.top_most.find(params[:namespace_id]) @group = find_group
return render_404 if @group.nil? return render_404 if @group.nil?
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment