'Unable to set keys for braintree payment method in magento local admin

Magento 2.4, PHP 7.4

Please may I know if anyone has faced an issue wherein the input fields to enter keys for Braintree payment method in magento local admin are not available. I guess the fields usually appear over the 'Validate Credentials' button. Clicking on 'Validate Credentials' makes the page to load for a long time and does not display any result.

Also, getting the following error in logs -

[2022-04-29 07:09:20] report.ERROR: Braintree\Configuration::publicKey needs to be set. [] []

Braintree local admin



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source