If you are using Braintree, you will need to populate the BRAINTREE_ENV, BRAINTREE_MODEL, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY, and BRAINTREE_PRIVATE_KEY variables. So, check over those carefully. It should work if they are correct. This page may help.
https://articles.braintreepayments.com/control-panel/important-gateway-credentials
Thank you for responding. I do have the values copied into my .env file as shown in the original thread. I didn't leave the specific values in for security reasons. They are exact copy and pastes of the values from the Braintree dashboard.
The reason I stated that is because the error message basically says you have the wrong merchant_id for sandbox. So, the culprit is probably an incorrect key or Braintree setup. Although, I don't use Windows so it may be some kind of odd issue related to that.
@bashy I saw that solution while researching it and tried it out. It did not seem to make a difference. Is there a particular setting in php.ini that it needs to go after?
Strange one. We only had an issue on the production server which is why I thought it was the PHP setup but I think we tried that then found another solution. Maybe something like config:cache.
If you still having the same problem please check at config/service.php if you have 'braintree' => [
'model' => App\User::class,
'env' => env('BRAINTREE_ENV'),
'merchant_id' => env('BRAINTREE_MERCHANT_ID'),
'key' => env('BRAINTREE_PUBLIC_KEY'),
'secret' => env('BRAINTREE_PRIVATE_KEY'),
],
if you dont have it just add it and remove stripe and it will work