【问题标题】:Please help me make sense of this php debug error (Braintree-WooCommerce extension)请帮助我理解这个 php 调试错误(Braintree-WooCommerce 扩展)
【发布时间】:2013-05-04 01:12:28
【问题描述】:

谁能帮我把这个 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 插件的全新安装

【问题讨论】:

  • 我认为 BrainTree / SkyVerge 团队是最先知道这一点的人。你联系过他们吗?
  • 我在 SkyVerge 工作 - 刚刚回复了您的票,如果您向我们提供一些额外信息,我们应该能够帮助您解决问题。谢谢! -最大

标签: php wordpress woocommerce braintree


【解决方案1】:

我在布伦特里工作。如果您需要比我们在 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 Keys”的橙色链接
  • 如果没有出现 API 密钥,请单击“生成新的”按钮
  • 点击“私钥”列下的“查看”。

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

如果您正在沙盒中查找 API 密钥,它们会在您登录后立即显示在屏幕上。

【讨论】:

  • 谢谢你,agf!我联系了您的支持热线,他们能够帮助我解决问题。对于遇到此问题的其他任何人:问题是尽管我正确输入了 API 密钥,但插件的网关设置仍配置为发布到沙盒而不是生产。我没有意识到 Sandbox 需要自己设置的 API 密钥,与生产密钥不同。
猜你喜欢
  • 2016-04-09
  • 1970-01-01
  • 1970-01-01
  • 2022-10-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-06
相关资源
最近更新 更多