在我的情况下,这是我的沙箱帐户的问题,我通过与braintree支持沟通解决了同样的问题.
ME : I have setup a Braintree sandbox account to make test PayPal payments. The userid is xxx@zzz.com
I am able to test hosted fields properly using this account,however I get Merchant account not found when I try to use the same client for PayPal. Can you please help me if I am missing any configuration?
Braintree Support : Your Sandbox merchant accounts don’t have PayPal enabled which could explain the error you are witnessing. I added PayPal as processor for your default merchant account (MobikonDefault).
Please try again and if the problem appears again,I would need you to provide your ClientToken API call and the exact time you reproduced the issue (including timezone).
ME : Thanks,that worked. Although I would like to know if I can do this configuration myself. I did not find any path to do so.
Braintree Support : Thanks for reaching back out to us. Currently,there is no way to set this up from the merchant side – this is a direct configuration on our backend that we have to set up (the one that Elvis set up for you).