title: How to tell if stripe charge is success or not
body: <p>I have php code to charge credit card via stripe
  I am beginner in php classes, so i don't know how to tell if the payment is succeed or not</p>
  
  <pre><code>&lt;?
  require_once('lib/Stripe.php');
  Stripe::setApiKey("sk_test_123ABC");
  if(isset($_POST)) {
  $payment = Stripe_Charge::create(array(
  'amount'        =&gt; '50',
  
  'currency'      =&gt; 'usd',
  
  'card'          =&gt; array(
  'number'=&gt; '4242424242424242',
  'exp_month' =&gt; '12',
  'exp_year'=&gt; '14',
  'cvc'=&gt; '123'),
  'description'   =&gt; 'New payment'
  )); }
  
  print_r($payment);
  ?&gt;
  </code></pre>
  
  <p>Results</p>
  
  <pre><code>Stripe_Charge Object
  (
      [_apiKey:protected] =&gt; sk_test_123ABC
      [_values:protected] =&gt; Array
          (
              [id] =&gt; ch_157h99GwRVG4EfR7dCxslaAs
              [object] =&gt; charge
              [created] =&gt; 1418105445
              [livemode] =&gt; 
              [paid] =&gt; 1
              [amount] =&gt; 50
              [currency] =&gt; usd
              [refunded] =&gt; 
              [captured] =&gt; 1
              [refunds] =&gt; Stripe_List Object
                  (
  </code></pre>