title: Get charge ID after Stripe payment and issue refund in PHP
body: <p>I'm using Stripe to process my payments in PHP with the API found here <a href="https://github.com/myg0v/Simple-Bootstrap-Stripe-Payment-Form" rel="nofollow noreferrer">https://github.com/myg0v/Simple-Bootstrap-Stripe-Payment-Form</a></p>
  
  <p>I'm using the following code to issue payment:</p>
  
  <pre><code>$charge = Stripe_Charge::create(array("amount" =&gt; $amount,
                                  "currency" =&gt; "$currency",
                                  "card" =&gt; $stripetoken,
                  "description" =&gt; $email));
  </code></pre>
  
  <p>Will the following code retrive the charge_id and refund the user?</p>
  
  <pre><code> $charge_id = $charge-&gt;stripe_charge_id;
  
   $refund = Stripe_Refund::create(array(
    "charge" =&gt; "$charge_id"
  ));
  </code></pre>