braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
546 stars 224 forks source link

Braintree\Configuration::merchantId needs to be set (or accessToken needs to be passed to Braintree\Gateway). #251

Closed PAWAN1SINGH closed 5 years ago

PAWAN1SINGH commented 5 years ago

Configuration constructor calls two times. first with an empty array and the second one is with data

include APPPATH.'third_party/braintree_php/lib/Braintree.php';

    $this->gateway = new Braintree\Configuration([
                'environment' => 'sandbox',
                'merchantId' => '********',
                'publicKey' => '*****',
                'privateKey' => '****'
            ]);
crookedneighbor commented 5 years ago

Please reach out to our support team for help with this: https://help.braintreepayments.com/