Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created February 6, 2014 23:29
Show Gist options
  • Save andrewpthorp/8854683 to your computer and use it in GitHub Desktop.
Save andrewpthorp/8854683 to your computer and use it in GitHub Desktop.
// The following would create a customer, subscribe them to your penny plan, and cost $1.00/month.
$customer = Stripe_Customer::create(array(
"card" => $token,
"email" => $email_to,
"description" => $planId.": ".$somiiPlan." plan.",
"plan" => "penny_plan",
"quantity" => 100)
);
// The following would create a customer, subscribe them to your penny plan, and cost $25.00/month.
$customer = Stripe_Customer::create(array(
"card" => $token,
"email" => $email_to,
"description" => $planId.": ".$somiiPlan." plan.",
"plan" => "penny_plan",
"quantity" => 2500)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment