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

gocardless/gocardless-pro/lib/Core/ListResponse.php returns an error when requesting Institutions #144

Open
petercalvert opened this issue Sep 26, 2022 · 0 comments

Comments

@petercalvert
Copy link

Context: using v4.20.0 in SANDBOX environment, installed through Composer.

Using a snippet taken directly from the docs for listing Institutions as part of a Billing Request.

$client = new \GoCardlessPro\Client(array(
  'access_token' => 'your_access_token_here',
  'environment'  => \GoCardlessPro\Environment::SANDBOX
));

$client->institutions()->list([
  "params" => ["country_code" => "GB"]
]);

This returns an error in vendor/gocardless/gocardless-pro/lib/Core/ListResponse.php line 37, as the returned response doesn't have a meta key. If you were to dump $this->api_response->body, you're returned the Institution dataset, but dumping $this->api_response->body->meta throws an error for Undefined property: stdClass::$meta.

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