Skip to content

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

Description

@raycao871218

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions