Sha256: 3d36b149ee33b2e086ebeee685ab6ce97e736b24d0537e0e3521b9c4d091f760
Contents?: true
Size: 790 Bytes
Versions: 18
Compression:
Stored size: 790 Bytes
Contents
= javascript_include_tag 'https://checkout.stripe.com/checkout.js' = form.simple_fields_for :subscripter, form.object.subscripter do |fs| = fs.input :stripe_token, as: :hidden, input_html: { value: nil } - fs.object.stripe_plan_id ||= (fs.object.current_plan || {})[:id] = fs.input :stripe_plan_id, as: :radio_buttons, collection: stripe_plans_collection(fs, include_trial: include_trial, selected_class: selected_class), label: label, required: required, wrapper_html: { class: "effective-orders-stripe-plans #{wrapper_class}", data: { selected_class: selected_class, stripe: stripe } }, item_wrapper_class: "effective-orders-stripe-plan #{item_wrapper_class}", item_wrapper_tag: 'div' - if fs.object.customer.persisted? = effective_customer_fields(fs)
Version data entries
18 entries across 18 versions & 1 rubygems