title: Stripe - 'exp_month' parameter should be an integer (instead, is 02 ) in Django View
body: <p>I am in the beginning stages of building a checkout payment form using Stripe.  I am using the jquery.payment library for formatting my month and year <a href="https://github.com/stripe/jquery.payment" rel="nofollow noreferrer">https://github.com/stripe/jquery.payment</a>.</p>
  
  <p>I created an <code>exp</code> input field to collect the data, but in order to get the Stripe required <code>exp_month</code> and <code>exp_year</code> fields I created them as new variables and took the value of my <code>exp</code> field and sliced the values I needed, then passed them to my view.</p>
  
  <p>The correct values are being passed to my view but when it hits <code>stripe.Token.create</code> I get the <code>stripe.error.CardError: Request req_A16AvRkITlz3Oi: The 'exp_month' parameter should be an integer (instead, is 02 ).</code> error in console.  Side note: This form worked perfectly when I had a field specific for <code>exp_month</code> and <code>exp_year</code> but how much fun is that? :)</p>
  
  <p>Below is my code for review:</p>
  
  <p><strong>ajax</strong></p>
  
  <pre><code>var fields = {
      number: 'null',
      cvc: 'null',
      exp: 'null',
      exp_month: 'null',
      exp_year: 'null'
  };
  
  $('#plaqueFormBTN').click(function (e) {
      e.preventDefault();
      fields.number = $('#id_number').val();
      fields.exp = $('#id_exp').val();
      fields.cvc = $('#id_cvc').val();
  
      $('#loader').show();
  
      var exp_month = fields.exp.slice(0, 3);
      var exp_year = fields.exp.slice(5);
      console.log(exp_month);
      console.log(exp_year);
      $.ajax({
          type: 'POST',
          data: {
              csrfmiddlewaretoken: getCookie('csrftoken'),
              number: fields.number,
              exp: fields.exp,
              exp_month: exp_month,
              exp_year: exp_year,
              cvc: fields.cvc
  
          },
          url: $('#plaqueForm').attr('action'),
          cache: false,
          ...
  </code></pre>
  
  <p><strong>view</strong></p>
  
  <pre><code>def plaque_order_form(request):
      if request.method == 'POST':
          form = PlaqueOrderForm(data=request.POST)
          if form.is_valid():
              number = request.POST.get('number', '')
              cvc = request.POST.get('cvc', '')
              exp_month = request.POST.get('exp_month', '')
              exp_year = request.POST.get('exp_year', '')
  
              subject = 'New Plaque Order'
              from_email = settings.DEFAULT_FROM_EMAIL
              recipient_list = [from_email]
  
              # Token is created using Stripe.js or Checkout!
              # Get the payment token submitted by the form:
  
              token = stripe.Token.create(
                  card={
                      'number': number,
                      'exp_month': exp_month,
                      'exp_year': exp_year,
                      'cvc': cvc
                  },
              )
              ...
  </code></pre>