Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Last active August 29, 2015 14:03
Show Gist options
  • Save andrewpthorp/08eb59d8fecc44f53105 to your computer and use it in GitHub Desktop.
Save andrewpthorp/08eb59d8fecc44f53105 to your computer and use it in GitHub Desktop.
Testing PHP
<?php
error_reporting(0);
ini_set('display_errors',0);
ini_set('max_execution_time', 1800);
require_once(ROOTPATH . '/lib/Stripe.php');
Stripe::setApiKey("your_test_secret_key_here");
$customer_ids = array('cus_4Gyfqsj4bqxFXl', 'cus_4EkyGLHNkZhTNS', 'cus_4Ejjhhw2HwNUhS');
foreach($customer_ids as $id) {
echo "Retrieved stripe id: " . $id . "<br />";
$customer = Stripe_Customer::retrieve($id);
echo "Customer: " . $customer->id . "<br />";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment