Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating accounts #63

Open
jaanttil opened this issue Oct 21, 2016 · 0 comments
Open

Updating accounts #63

jaanttil opened this issue Oct 21, 2016 · 0 comments

Comments

@jaanttil
Copy link

Based on README, instance.update takes new data as an first argument, but for account this is not true. Instead I need to set new data to account instance, and then call update with callback as first argument.

var account = recurly.Account();
account.id = 'ACCOUNT_ID';
account.email = 'NEW_EMAIL;
account.update(function(err, account)

instead of documented

var account = recurly.Account();
account.id = 'ACCOUNT_ID';
account.update({email: 'NEW_EMAIL'}, function(err, account)

BillingInfo, Plan, Subscription seems to work as documented..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant