thephpleague / omnipay-braintree

Braintree Driver for Omnipay Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need help for merchant account id

skynetjam opened this issue · comments

Hi,

Can anyone please let us know how can we pass merchantAccountId while generating the clientToken

$clientToken = $gateway->clientToken()->send()->getToken();

As it not clear from the code

You can use Omnipay object like this.

$gateway = Omnipay::create('Braintree'); $gateway->setMerchantId('XXXX'); $gateway->setPublicKey('YYY'); $gateway->setPrivateKey('ZZZZ'); $gateway->setTestMode(true);