gpt4 book ai didi

php - Paypal 自适应支付服务 550001 错误

转载 作者:可可西里 更新时间:2023-10-31 22:51:38 25 4
gpt4 key购买 nike

我在管理面板中实现了一项功能,管理员可以在其中向卖家发放资金(我不确定,但我认为这就是我们所说的自适应支付)。

买家正在向应用程序管理员支付一定金额,现在管理员可以从管理面板向卖家发放资金。

所有这一切在沙盒上运行完美,但是当我将凭据更新到实时时它向我显示错误。

这是我的代码。

$payRequest = new PayRequest();
/*
$receiver is
array:1 [▼
0 => Receiver {#278 ▼
+amount: 35.0
+email: "me****p4@gmail.com"
+phone: null
+primary: null
+invoiceId: null
+paymentType: null
+paymentSubType: null
+accountId: null
}
]
*/
$receiverList = new ReceiverList($receiver);
$payRequest->receiverList = $receiverList;
$payRequest->senderEmail = "sender@email.com";

$requestEnvelope = new RequestEnvelope("en_US");
$payRequest->requestEnvelope = $requestEnvelope;
$payRequest->actionType = "PAY";
$payRequest->currencyCode = $payment->currency_code;
$payRequest->ipnNotificationUrl = "http://replaceIpnUrl.com";

$sdkConfig = $this->config();
$adaptivePaymentsService = new AdaptivePaymentsService($sdkConfig);
$payResponse = $adaptivePaymentsService->Pay($payRequest);

我收到错误 550001,这是完整的错误:

PayPal\Types\AP\PayResponse Object
(
[responseEnvelope] => PayPal\Types\Common\ResponseEnvelope Object
(
[timestamp] => 2017-06-05T05:16:36.032-07:00
[ack] => Failure
[correlationId] => b828f2378a7e
[build] => 32250686
)

[payKey] =>
[paymentExecStatus] =>
[payErrorList] =>
[paymentInfoList] =>
[sender] =>
[defaultFundingPlan] =>
[warningDataList] =>
[error] => Array
(
[0] => PayPal\Types\Common\ErrorData Object
(
[errorId] => 550001
[domain] => PLATFORM
[subdomain] => Application
[severity] => Error
[category] => Application
[message] => You do not have permission to execute this payment implicitly
[exceptionId] =>
[parameter] =>
)
)
)

我已经搜索了很多关于这个但没有得到任何线索。有人可以帮我解决这个问题吗?

最佳答案

这可能是因为您的申请没有包含隐性支付。据我所知,PayPal 不支持新应用程序的隐式支付。再次检查您的 App ID 以确认您的帐户已被授予哪个应用程序。

关于php - Paypal 自适应支付服务 550001 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44368824/

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