Created
July 23, 2014 03:17
-
-
Save LarryUllman/86b67f3f3b7e969604c8 to your computer and use it in GitHub Desktop.
Stripe - PHP - Create Customer with Subscription
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 a 7 day trial: | |
$cu = Stripe_Customer::create(array( | |
'email' => $email, | |
'card' => $token, | |
'plan' => '10_monthly' | |
'trial_end' => time() + (7 * 24 * 60 * 60), // 7 days | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment