thephpleague / omnipay-braintree

Braintree Driver for Omnipay Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set Merchant Account ID?

marioperezpereira opened this issue · comments

Is there a way of setting up the "Merchant Account ID" parameter? (for a common merchant id there can be multiple accounts). Tried the following but doesn't appear to work:

    $gateway->updateMerchantAccount(
        ['merchantAccountId' => account_id]
    );

wops! realised it was on the transaction:

        $response = $gateway->purchase([
            'amount' => '10.00',
            'token' => $nonce,
            'merchantAccountId' => account_id
        ])->send();

sorry!