0

i am trying to create object of class

Magento\Braintree\Model\Adapter\BraintreeAdapter

when i creating object like

$this->adapter = \Magento\Framework\App\ObjectManager::getInstance()->create('Magento\Braintree\Model\Adapter\BraintreeAdapter');

it gives error The entity that was requested doesn't exist. Verify the entity and try again.

how can i solve this?

asked Apr 11, 2020 at 3:54

1 Answer 1

0

Try the following way:


$config = [
 'merchantId' => '',
 'publicKey' => '',
 'privateKey' => '',
 'environment' => ''
];
$this->adapter = \Magento\Framework\App\ObjectManager::getInstance()->create('Magento\Braintree\Model\Adapter\BraintreeAdapter', $config);
answered Apr 11, 2020 at 11:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.