gpt4 book ai didi

javascript - 来自 Braintree 沙箱错误 : PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED 的 PayPal 集成

转载 作者:数据小太阳 更新时间:2023-10-29 06:09:30 27 4
gpt4 key购买 nike

当我尝试从 Braintree 测试我的 PayPal 集成时,我遇到了这个错误。

这是我的客户端代码(实际上是从官网复制过来的,稍作修改):

braintree.client.create({
authorization: ClientToken
}, function(err, clientInstance) {
if (err) {
console.error(err);
return;
}

// Create a PayPal Checkout component.
braintree.paypalCheckout.create({
client: clientInstance
}, function (paypalCheckoutErr, paypalCheckoutInstance) {
// Stop if there was a problem creating PayPal Checkout.
// This could happen if there was a network error or if it's incorrectly
// configured.
if (paypalCheckoutErr) {
console.error('Error creating PayPal Checkout:', paypalCheckoutErr); // Error from this line
return;
}
});
});

Error creating PayPal Checkout: 
{
name: "BraintreeError",
code: "PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED",
message: "A linked PayPal Sandbox account is required to use PayPal Checkout in Sandbox. See https://developers.braintreepayments.com/guides/paypal/testing-go-live/#linked-paypal-testing for details on linking your PayPal sandbox with Braintree.",
type: "MERCHANT",
details: undefined
}

我实际上已经链接了我的 PayPal 沙箱帐户(从 Braintree 控制面板),但令人惊讶的是找不到关于此错误的任何有用信息。我当然看完了https://developers.braintreepayments.com/guides/paypal/testing-go-live/node#linked-paypal-testing .

最佳答案

我终于打开另一个 Braintree 沙箱帐户解决了这个问题。这很奇怪,但我无法通过其他任何方式解决。

关于javascript - 来自 Braintree 沙箱错误 : PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED 的 PayPal 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50147503/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com