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

时间:2013-05-04 01:12:28

标签: 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插件

的全新安装

1 个答案:

答案 0 :(得分:4)

我在Braintree工作。如果您需要比Stack Overflow更详细的帮助,请与our support team联系。

我不熟悉SkyVerge的WooCommerce插件的内部,但Braintree_Exception_Authentication generally means a problem with your API keys

  

身份验证错误

     

如果您的API密钥不正确,您将收到身份验证例外。如果在首次集成时遇到此异常,请仔细检查您是否意外尝试在生产中使用沙箱密钥,反之亦然。

我们的Support Center describes where to find your API Keys in production

  

API密钥

     

您的API密钥和商家ID是您用于连接Braintree API的凭据。您可以通过以下步骤找到这些参数:

     
      
  • 登录控制台:https://www.braintreegateway.com/login
  •   
  • 将鼠标悬停在您的帐户名称上,然后点击我的用户
  • ,导航到右上角的下拉菜单   
  • 点击标题为“API密钥”的橙色链接
  •   
  • 如果未显示API密钥,请单击“生成新建”按钮
  •   
  • 点击私钥列下的“查看”。
  •   
     

值将显示在结果页面上。您还可以选择语言并单击“复制”,将API配置代码直接复制到剪贴板。

如果您在沙盒中查找API密钥,则只要您登录就会在屏幕上显示。