Created
April 23, 2012 19:11
-
-
Save mbeale/2473165 to your computer and use it in GitHub Desktop.
PHP v2 recurly upgrade subscription add_on
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment