php - 请帮助我理解这个 php 调试错误(Braintree-WooCommerce 扩展)

标签 php wordpress woocommerce braintree

谁能帮我把这个 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/

相关文章:

php - str_split并从mysql获取数据

php - 无法分配内存错误问题

javascript - 用另一个 div 的溢出内容填充 div

wordpress - 如何通过以访客身份将产品添加到购物车并在结账时登录来避免在 WooCommerce 中再次购买相同的产品

php - 将我的 Yii 项目置于版本控制之下时,我应该忽略哪些文件和目录?

php - 忽略特定的 WHERE 标准

PHP - HTML 中的输出正确,但浏览器给出 500 内部服务器错误

css - Bootstrap 导航栏无法与 wordpress 一起正常工作

wordpress - 允许 "customer"用户角色在前端使用acf_form上传文件

php - woocommerce - 将循环中的产品评级从文本格式更改为星号显示格式