No such token error is coming in stripe payment
<p>I am implementing <strong>stripe payment gateway</strong> in <strong>cakephp</strong> project.</p>

<p><strong>Below is the code which i have tried :</strong> </p>



<pre class="lang-html prettyprint-override"><code>  require_once('stripelib/vendor/autoload.php');
        \Stripe\Stripe::setApiKey('sk_test_xxxxxxxxxxxxxxxxxxxxxx');
        try {
            $charge = \Stripe\Charge::create(array(
                        "amount" =&gt; $data['total'] * 100,
                        "currency" =&gt; "usd",
                        "card" =&gt; $token,
                        "description" =&gt; "Charge for Facebook Login code."
            ));
            //  pr($charge);exit;
        }
</code></pre>

<p>Here problem is merchant is not getting amount and <strong>i got below error</strong> :</p>

<blockquote>
  <p>{"error":"No such token:
  card_xxxxxxxxxxxxxxxxxxxxxx(invalid_request_error)"}</p>
</blockquote>

<p>Any suggestion?
Thank you.</p>