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

Can't get the sub-account's Beneficiaries #154

Open
raycao871218 opened this issue Jul 12, 2023 · 1 comment
Open

Can't get the sub-account's Beneficiaries #154

raycao871218 opened this issue Jul 12, 2023 · 1 comment

Comments

@raycao871218
Copy link

I tried 3 ways to get the sub-accounts' Beneficiaries but it keep response the house-account's beneficiaries.

1st way:

$currencyCloud->getSession()->setOnBehalfOf($contactId);
$beneficiaries = $currencyCloud->beneficiaries()->find();

2ed way:
$beneficiaries = $currencyCloud->beneficiaries()->find(null, null, $contactId);
3rd way:

$beneficiaries = $currencyCloud->onBehalfOf($contactId, function($currencyCloud){
                $data = $currencyCloud->beneficiaries()->find();
                dd($data);
            });

I hard code the contact id into the sdk source code(BeneficiariesEntryPoint->convertBeneficiaryToRequest), it works fine.

@CNimmo16
Copy link
Contributor

CNimmo16 commented May 9, 2024

I have raised a PR to resolve this #161

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

2 participants