Created
March 13, 2019 19:27
-
-
Save nishapanFFF/f3f877858c42d93447e6895d89b269fc to your computer and use it in GitHub Desktop.
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
$account = new Recurly_Account(); | |
$account->account_code = 'nishabadaddress@yopmail.com'; | |
$account->email = 'nishabadaddress@yopmail.com'; | |
$account->first_name = 'nisha'; | |
$account->last_name = 'pan'; | |
$address = array(); | |
$address['address1'] = '123 main st'; | |
$address['address2'] = ''; | |
$address['city'] = 'los angeles'; | |
$address['state'] = 'CO'; | |
$address['zip'] = '91202'; | |
$address['country'] = 'US'; | |
$address['phone'] = '1111111111'; | |
$account->address = $address; | |
$subscription = new Recurly_Subscription(); | |
$subscription->plan_code = 'ffftrial'; | |
$subscription->currency = 'USD'; | |
$subscription->quantity = 1; | |
$billing_info = array('token_id' => 'some-token'); | |
$account->billing_info = $billing_info; | |
$subscription->account = $account; | |
$subscription->create(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment