Skip to content

Instantly share code, notes, and snippets.

@matthewarkin
Created August 7, 2014 18:55
Show Gist options
  • Save matthewarkin/13ad9a37b2e61c06ff81 to your computer and use it in GitHub Desktop.
Save matthewarkin/13ad9a37b2e61c06ff81 to your computer and use it in GitHub Desktop.
<?php
require_once(dirname(__FILE__) . '/config.php');
$token = $_POST['stripeToken'];
$customer = Stripe_Customer::create(array(
'email' => '[email protected]',
'card' => $token
'plan' => 'fancy_plan_id'
));
echo '<h1>Successfully subscribed to plan - Fancy Plan</h1>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment