recurly/recurly-client-php — Issue #14: Recurly_InvoiceList::getForAccount(accountCode) Returns All Invoices
Author: rawberg
Created: 2011-11-04 06:50:32+00:00
State: open

Looks like it's not forming the proper URL to only retrieve invoices for a specific account. Here is my patch to fix the issue.

```php
public static function getForAccount($accountCode, $params = null, $client = null)
{
$list = new Recurly_InvoiceList(Recurly_Client::PATH_INVOICES, $client);
$loadPath = Recurly_Client::PATH_ACCOUNTS . '/' . $accountCode . Recurly_Client::PATH_INVOICES;
$list->_loadFrom($loadPath, $params);
return $list;
}
```