Hello.
I have locally install ( upgraded ) to magento 2.4.8 .. I have not enabled any Payment such as braintree or paypal, however, I noticed error message in console .. as follow
name: 'BraintreeError', code: 'INSTANTIATION_OPTION_REQUIRED', message: 'options.authorization is required when instantiating a client.', type: 'MERCHANT', details: undefined}
This error in console only shows up when I go to product detail page and it seems something to do with paypal button . I have checked and multiple checked for any paypal setting but everything is been turned off ..
any suggestion ?
Thanks.
Hello @tonysargma79f8 ,
Have you disabled highlighted option? Refresh cache and check frontend.
If above not worked then explicitly disable module related to PayPal / Braintree from app/etc/config.php & execute necessary commands and check once on frontend.
Problem Solved? Accept as Solution!
Thanks
I’ve run into a similar issue before after upgrading. Even if PayPal and Braintree look disabled in the admin, some parts of the checkout or product detail template can still try to load those scripts. A couple of things you can try:
Double-check in Stores > Configuration > Sales > Payment Methods that PayPal, PayPal Credit, and Braintree are all set to “Disable.”
Clear cache and re-deploy static content, since old JS files sometimes still hang around.
If the error continues, you may need to disable the PayPal/Braintree modules directly in app/etc/config.php and then run bin/magento setup:upgrade and bin/magento cache:flush.
That usually clears the console error. If you’ve already tried all of the above, it could be a theme or third-party extension still calling the PayPal button, so it’s worth checking your custom modules as well.