thephpleague / omnipay-braintree

Braintree Driver for Omnipay Gateway
MIT License
34 stars 50 forks source link

Call to undefined method Omnipay\Braintree\Gateway::merchantId() #30

Closed mailnike closed 7 years ago

mailnike commented 7 years ago

I am using Laravel 5.3 with Php 7.*.

Hi,

I am getting below error for the braintree payment gateway integrated in my laravel code. Am I missing some step or anything?

Laravel controller code

$gateway = Omnipay::create('Braintree');

        $gateway->merchantId('merchant_id');
        $gateway->publicKey('public_key');
        $gateway->privateKey('private_key');
        $gateway->testMode('true');
        $clientToken = $gateway->clientToken()->send()->getToken();

        return $clientToken;