title: getting error in stripe "Cannot charge a customer that has no active card"
body: <p>I am working on stripe charge functionality, i have created customer from credit card details, and stored that customer in the database, and then i am trying to charge to that customer by customer id, but i when i am trying to do that i am getting error, <code>Cannot charge a customer that has no active card</code>, here i have added my whole code, can anyone please tell me why i am getting this error</p>
  
  <pre><code>\Stripe\Stripe::setApiKey("sk_test_p7WuwfVhQGpu4zb6IZC3MI0b");
  \Stripe\Stripe::setApiVersion("2018-05-21");
  
  $amount = 100;
  try {
      $charge = \Stripe\Charge::create(array(
              "amount" =&gt; $amount,
              "currency" =&gt; "usd",
              "description" =&gt; "",
              "customer" =&gt; 'cus_DWuoLfjJBSQsWt',
          )
      );
      echo "&lt;pre&gt;";
      print_r($charge);
      die;
  } catch (Exception $ex) {
      echo $ex-&gt;getMessage(); die;
  }
  </code></pre>