-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels