Last active
August 29, 2015 14:04
-
-
Save LarryUllman/76b45e6d2ea79001ac87 to your computer and use it in GitHub Desktop.
Stripe - PHP - Create customer with Subscription, No Trial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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