Skip to content

Instantly share code, notes, and snippets.

@alch
Last active August 29, 2015 14:20
Show Gist options
  • Save alch/f3526d55b9c643980ec2 to your computer and use it in GitHub Desktop.
Save alch/f3526d55b9c643980ec2 to your computer and use it in GitHub Desktop.
/**
* List charges form stripe.
* @link https://stripe.com/docs/api/php#list_charges
*/
\Stripe::setApiKey('stripe.private.key');
/**
* @var \Stripe_List $a
*/
$a = \Stripe_Charge::all();
/*
* Actual Stripe_Objects representing charges are accesible by the data field
*/
var_dump($a->data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment