谁能帮我把这个 PHP 错误翻译成英文吗?
Fatal error: Uncaught exception 'Braintree_Exception_Authentication'
in
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-gateway-braintree/braintree_php/lib/Braintree/Util.php:59
Stack trace: #0
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-gateway-braintree/braintree_php/lib/Braintree/Http.php(31):
Braintree_Util::throwStatusCodeException(401) #1
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-gateway-braintree/braintree_php/lib/Braintree/CreditCard.php(175):
Braintree_Http::get('/payment_method...') #2
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-gateway-braintree/classes/class-wc-gateway-braintree.php(334):
Braintree_CreditCard::find('5kbn9') #3
/opt/bitnami/apps/wordpress/htdocs/wp-content/themes/urbin/woocommerce/checkout/review-order.php(259):
WC_Gateway_Braintree->payment_fields() #4
/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/woocommerce-core-functions.php(617):
include('/opt/bitnami/ap...') #5 /opt/bitnami/apps/wordp
in/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-gateway-braintree/braintree_php/lib/Braintree/Util.phpon
line 59
我不知道如何最好地攻击它。这是来自 WooCommerce Braintree Payment Gateway 的全新安装插件
最佳答案
我在布伦特里工作。如果您需要比我们在 Stack Overflow 上提供的更详细的帮助,请联系 our support team .
我不熟悉 SkyVerge 的 WooCommerce 插件的内部结构,但 Braintree_Exception_Authentication
generally means a problem with your API keys :
Authentication Error
You’ll receive an authentication exception if your API keys are incorrect. If getting this exception when first integrating, double-check that you didn’t accidentally try to use your sandbox keys in production or vice versa.
我们的Support Center describes where to find your API Keys in production :
API Keys
Your API keys and merchant ID are the credentials that you'll use to connect to the Braintree API. You can locate these parameters by the following steps:
- Login to the Control Panel: https://www.braintreegateway.com/login.
- Navigate to the drop-down menu in the top right by hovering over your account name and click My User
- Click the orange link titled "API Keys"
- If no API keys appear, click the "Generate New" button
- Click "View" under the Private Key column.
The values will appear on the resulting page. You'll also have the option to copy the API configuration code directly to your clipboard by selecting a language and clicking "Copy".
如果您要在沙盒中查找 API key ,它们会在您登录后立即显示在屏幕上。
关于php - 请帮助我理解这个 php 调试错误(Braintree-WooCommerce 扩展),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16369617/