Skip to content

Instantly share code, notes, and snippets.

@LarryUllman
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarryUllman/76b45e6d2ea79001ac87 to your computer and use it in GitHub Desktop.
Save LarryUllman/76b45e6d2ea79001ac87 to your computer and use it in GitHub Desktop.
Stripe - PHP - Create customer with Subscription, No Trial
// Create a customer, subscribe them to a plan, with NO trial:
$cu = Stripe_Customer::create(array(
'email' => $email,
'card' => $token,
'plan' => '10_monthly_trial',
'trial_end' => 'now', // Trial ends now (i.e., no trial)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment