title: Pass custom parameters in create action of charges Stripe controller
body: <p>In the create action of charges controller from Stripe, I would like to get  the command which have just been paid. But I don't know how to pass parameters in the stripe payment form.</p>
  
  <p>This is my actual code : </p>
  
  <p><strong>charges_controller</strong></p>
  
  <pre><code>class ChargesController &lt; ApplicationController
  
    def new
      @command = Command.find(params[:command_id])
      @item = @command.commandable
    end
  
    def create
      @command = # I would like to have the current command...
      @item = @command.commandable
      # Amount in cents
      amount_in_cents = (@command.total_price * 100).to_i
      customer = StripeTool.create_customer(params[:stripeEmail],
                                            params[:stripeToken])
  
      charge = StripeTool.create_charge(customer.id,
                                        amount_in_cents,
                                        'Commande Edicouv')
  
      redirect_to root_path
   end
  </code></pre>
  
  <p>Params when i'm in the create action : </p>
  
  <pre><code>Processing by ChargesController#create as HTML
  Parameters: {"utf8"=&gt;"✓", 
               "authenticity_token"=&gt;"...", 
               "stripeToken"=&gt;"...", 
               "stripeTokenType"=&gt;"card", 
               "stripeEmail"=&gt;"orsay@live.fr"}
  </code></pre>
  
  <p><strong>views/charges/new</strong></p>
  
  <pre><code>script.stripe-button[src="https://checkout.stripe.com/checkout.js" 
  data-key="#{Rails.configuration.stripe[:publishable_key]}" 
  data-description="Règlement de votre achat" 
  data-locale="auto" 
  data-currency="eur" 
  data-panel-label="Payer #{@command.total_price} €" 
  data-label="Payer"
  data-image="/assets/logo.png" 
  data-email="#{current_user.email}" 
  data-allow-remember-me="false"]
  </code></pre>