Charge Documentation

Set Value Payments

Lock down the value of the payment to a specific value.

If you don't want your users to be able to change the price in the form, you can supply the value for the payment as a parameter on the exp:charge:form tag. This value will be encrypted as part of the form, and the payment value will be set to that amount. Any other value passed on the form will be ignored.

This method of setting (and protecting values) works for the following parameters: on_success, on_success:*, success_action, plan_amount, plan_interval, plan_interval_count, plan_currency


    {if have_errors}
      <div class="alert alert-error">
        <h4>We have {error_count} errors</h4>

    <label for="plan_amount" class="col-sm-2 control-label">Customer Name</label>

    <input type="text" class="form-control" id="customer_name" name="customer_name" placeholder="eg. Joe Smith" value="{customer_name}" />
    {if error_customer_name}
      <div class="alert alert-warning">

    <label for="plan_amount" class="col-sm-2 control-label">Customer Email</label>
    <input type="text" class="form-control" id="customer_name" name="customer_email" placeholder="eg." value="{customer_email}" />
    {if error_customer_email}
      <div class="alert alert-warning">



    <label for="plan_amount" class="col-sm-2 control-label">Details</label>
    <input type="text" class="form-control disabled" disabled="disabled" id="" name="" value="99 EUR Weekly" />
    <span class="help-block">
      This is set using 'plan_amount', 'plan_interval', 'plan_interval_count' and 'plan_currency' on the exp:charge:form tag.
      The user will be unable to change this


    <h4>Credit Card Details</h4>

    {if have_card_token}
      <h4>Payment Card</h4>
      <p><strong>{card_type}</strong>: {card_number_dotted}</p>
      <h4>Payment Card</h4>

      <label for="card_number" class="col-sm-2 control-label">Credit Card Number</label>
      <input type="text" class="form-control" id="card_number" value="4242 4242 4242 4242" data-stripe="number" />

      <label for="card_exp_month" class="col-sm-2 control-label">Expires</label>
      <select id="card_exp_month" class="form-control" data-stripe="exp_month">
          <option value="{month_digit}" {if current_month}selected="selected"{/if}>{month_digit} / {month_long}</option>

      <select id="card_exp_year" class="form-control" data-stripe="exp_year">
          <option value="{year_long}">{year_long}</option>

      <label for="card_cvc" class="col-sm-2 control-label">Security Code</label>
      <input class="form-control" type="text" id="card_cvc" placeholder="" value="123" data-stripe="cvc" />

    <button id="submit_payment" type="submit" class="btn btn-primary form-control">Pay Now</button>
    <div id="payment-errors"></div>


<script src="//"></script>
<script src="{exp:charge:stripe_js}"></script>
<script src="{exp:charge:js}"></script>
  (function(window, undefined) {
    $(this).charge('#charge-form', '#payment-errors');


Having problems setting up and/or using Charge? Support is offered from 10am to 4pm EST weekdays. Send us an email at and we will respond as quickly as we can.