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 address | |
$address = array(); | |
$address['address1'] = '123 main st'; | |
$address['address2'] = ''; | |
$address['city'] = 'Los Angeles'; | |
$address['state'] = 'CO'; | |
$address['zip'] = '91202'; | |
$address['country'] = 'US'; | |
$address['phone'] = '(310)-123-1222'; |
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 = '[email protected]'; | |
$account->email = '[email protected]'; | |
$account->first_name = 'nisha'; | |
$account->last_name = 'pan'; | |
$address = array(); | |
$address['address1'] = '123 main st'; | |
$address['address2'] = ''; | |
$address['city'] = 'los angeles'; |
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
try { | |
$subscription = new Recurly_Subscription(); | |
$subscription->plan_code = 'fffvip'; | |
$subscription->currency = 'USD'; | |
$subscription->quantity = 1; | |
$accountcode = '[email protected]'; | |
$account = Recurly_Account::get($accountcode); | |
$billing_info = new Recurly_BillingInfo(); |
NewerOlder