The function recurly_account_save() takes an $export paramater which can be set in order to tell the module to also create/update data on the Recurly server when saving an account.

When that's TRUE there is a call the Recurly_Account::getAccount(). This method doesn't actually exist and causes the entire block of code to fail. It should instead be Recurly_Account::get().

https://github.com/recurly/recurly-client-php/blob/master/lib/recurly/ac...

Comments

eojthebrave’s picture

StatusFileSize
new1.02 KB

Hmm. It appears that there are actually more issues here. When Recurly_Account::get() doesn't find an account it returns a 404 Recurly_ClientResponse object, which is validated by ::assertValidResponse() which in turn throws a new Recurly_NotFoundError, which isn't handled, and $remote_account is never set to anything ... and the code after that to create a new account never gets called.

This should fix that.

quicksketch’s picture

Thanks! Committed.

quicksketch’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.