【发布时间】:2017-11-06 05:16:50
【问题描述】:
我在管理面板中实现了一项功能,管理员可以在其中向卖家发放资金(我不确定,但认为这就是我们所说的自适应付款)。
买家正在向应用程序管理员支付一些款项,现在管理员可以从管理面板向卖家发放资金。
这一切都在沙盒上完美运行,但是当我将凭据更新到现场时,它会向我显示错误。
这是我的代码。
$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] =>
)
)
)
我对此进行了很多搜索,但没有得到任何线索。有人可以帮我解决这个问题吗?
【问题讨论】:
-
检查您帐户中当前的应用程序访问权限。转到Manage App 也选中了您在应用程序“隐式支付”中有勾选框。如果您觉得我的评论有帮助,请告诉我,以便我将其写在答案部分。谢谢,
-
好友您提供的管理应用程序的链接无效,请在最后检查一次。现在,当我们去 developer.paypal.com 管理应用程序时,它没有显示任何“隐式付款”选项prntscr.com/fpwbmb
-
通过少数 RnD,我发现 paypal 本身允许的权限很少。对于我正在寻找的功能,我们需要“支付”权限,并且默认情况下不允许直播(prnt.sc/fpwccw),我无法找到解决方案。贝宝的支持真的很糟糕,我现在没有从官员那里得到任何帮助,我想我将不得不将支付网关更改为 Stripe 或任何其他网关:(
-
点击启用支付按钮会发生什么?
-
它只显示一个联系按钮,并将我重定向到自助 (paypal.com/gb/selfhelp/home)
标签: php laravel paypal paypal-adaptive-payments