title: Making test transactions in an activated stripe account
body: <p>I have a stripe standalone account that is activated and is accepting live transactions and connected to a platform stripe account. I am giving below the code I am using for accepting live payments.</p>
  
  <pre><code> \Stripe\Stripe::setApiKey("LIVE_PLATFORM_API_KEY");
   $strtok = \Stripe\Token::create(
               array(
                "card" =&gt; array(
                        "number" =&gt; $cardnumber,
                        "exp_month" =&gt; $cardexpmonth,
                        "exp_year" =&gt; $cardexpyear,
                        "cvc" =&gt; $creditcardcvv
                    )
                  ),
                  array('stripe_account' =&gt; "live_account_header")
                );
   $strtoken = $strtok-&gt;id;
   $charge = \Stripe\Charge::create(array(
                    'amount' =&gt; $amts,
                    'currency' =&gt; 'usd',
                    'application_fee' =&gt; $appfee,
                    'source' =&gt; $strtoken
              ), array('stripe_account' =&gt; "live_account_header"));
  </code></pre>
  
  <p>I want to set up a debug mode in my code that will use the stripe test keys to accept test transactions even though both the stripe standalone and platform accounts are activated and in the live mode. I want the stripe calls I should use when I am debugging instead of making live transactions. I mean how should I change the above code and use test keys when I suddenly want to make a test transaction instead of a live one even though both the platform and the stand alone account are activated and live?</p>