omnipay-braintree
omnipay-braintree copied to clipboard
Need help for merchant account id
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);