我已在管理面板中实施了一项功能,管理员可以将该资金发放给卖家(我不确定,但我认为这就是我们所谓的自适应付款)。
买家正在向管理员支付一定金额,管理员可以从管理面板向卖家发放资金。
所有这一切在沙箱上都很完美,但是当我更新了现场的凭据时,它会向我显示错误。
这是我的代码。
$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] =>
)
)
)
我已经搜索了很多关于这一点,但没有得到任何线索。有人可以帮我这个。
答案 0 :(得分:1)
可能是由于您的申请不包含隐含付款。据我所知,PayPal不支持新应用程序的隐式付款。再次检查您的App ID,以确认您的帐户已被授予哪个应用程序。