I would like to generate a client token for brain tree paypal payment as a
response,How can i solve,please any idea.any help would be appreciated.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Call this Library > \Magento\Braintree\Model\Adapter\BraintreeAdapterFactory $bt_adapter in construct.
$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