This file contains hidden or 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 struct | |
type Account struct{ | |
XMLName xml.Name `xml:"account"` | |
AccountCode string `xml:"account_code"` | |
Username string `xml:"username"` | |
Email string `xml:"email"` | |
State string `xml:"state,omitempty"` | |
FirstName string `xml:"first_name"` | |
LastName string `xml:"last_name"` | |
CompanyName string `xml:"company_name"` |
This file contains hidden or 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 struct | |
type Account struct{ | |
account_code, username,email, state, first_name string | |
last_name, company_name, accept_language string | |
hosted_login_token, created_at string | |
} |
This file contains hidden or 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
$subscription = Recurly_Subscription::get('17caaca1716f33572edc8146e0aaefde'); | |
$add_on = new Recurly_SubscriptionAddOn(); | |
$add_on->quantity = 2; | |
$add_on->add_on_code = 'extraip'; | |
$subscription->subscription_add_ons[] = $add_on; | |
$subscription->updateImmediately(); |
This file contains hidden or 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
subscription = Recurly::Subscription.create( | |
:plan_code => 'standard', | |
:currency => 'USD', | |
:add_ons => [{ | |
:add_on => { | |
:add_on_code => 'extraip', | |
:quantity => 1 | |
} | |
}], | |
:account => { |
NewerOlder