1

Hi
can anyone help me how to generate the client to PayPal Braintree in megento2. help me great.

Thanks

2

Call this Library > \Magento\Braintree\Model\Adapter\BraintreeAdapterFactory $bt_adapter in construct.

afterwards,

$bt_adapter = $this->bt_factory->create(); 
$value = $bt_adapter->generate();

That should generate a client token for you provided that you first made the config in admin for Braintree

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.