title: Stripe payment error : Invalid string id
body: <p>I am getting below error when I create a Stripe Charge</p>
  
  <blockquote>
    <p>Invalid string id: {"number"=>"401288******1881", "exp_month"=>"02",
    "exp_year"=>"2015", "cvc"=>"***", "name"=>"Tahir Yasin",
    "address_line1"=>"lorem ipsum dolar", "address_line2"=>"lorem ipsum
    dolar", "address_zip"=>"5400", "address_state"=>"Punjab",
    "address_country"=>"PK"}{"success":true,"error":false}</p>
  </blockquote>
  
  <p><strong>Stripe Charge and Collecting Fee</strong></p>
  
  <pre><code>try {
      $charge = Stripe_Charge::create(array(
                  'amount' =&gt; 500,
                  'currency' =&gt; 'usd',
                  'card' =&gt; array(
                      'number' =&gt; '4012888888881881',
                      'exp_month' =&gt; '02',
                      'exp_year' =&gt; '2015',
                      'cvc' =&gt; '123',
                      'name' =&gt; 'Tahir Yasin',
                      'address_line1' =&gt; 'lorem ipsum dolar',
                      'address_line2' =&gt; 'lorem ipsum dolar',
                      'address_zip' =&gt; '5400',
                      'address_state' =&gt; 'Punjab',
                      'address_country' =&gt; 'PK',
                  ),
                  'description' =&gt; '#100000011, tahiryasin@test.com',
                  "application_fee" =&gt; 5
           ), 'SECRET_KEY_OF_CUSTOMER_TAKEN_VIA_STRIPE_CONNECT'
      );
  } catch (Exception $e) {
      echo $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>Further digging the stack trace shows </p>
  
  <pre><code>[error] =&gt; Array
              (
                  [type] =&gt; invalid_request_error
                  [message] =&gt; Invalid string id: {"number"=&gt;"401288******1881", "exp_month"=&gt;"02", "exp_year"=&gt;"2015", "cvc"=&gt;"***", "name"=&gt;"Tahir Yasin", "address_line1"=&gt;"lorem ipsum dolar", "address_line2"=&gt;"lorem ipsum dolar", "address_zip"=&gt;"5400", "address_state"=&gt;"Punjab", "address_country"=&gt;"PK"}
                  [param] =&gt; card
              )
  </code></pre>
  
  <p>I thought this could be due to dummy card details but I injected my real card details but still same error.</p>
  
  <p>Can anyone please look into and let me know what am I missing here?</p>