I have implemented a functionality into the admin panel where the admin can release the fund to seller (I am not sure but think this is what we called Adaptive Payments).
我已经在管理面板中实现了一项功能,管理员可以将该资金发放给卖家(我不确定,但我认为这就是我们所说的自适应支付)。
A buyer is paying some amount to the admin of application now the admin can release the funds to seller from the admin panel.
现在,管理员可以从管理面板向卖方发放资金,买家正在向应用程序管理员支付一定金额。
All this is working perfect on sandbox, but when I have updated the credentials to the live its showing me the error.
所有这一切在沙盒上都很完美,但是当我更新了现场的凭据时,它向我显示错误。
Here is my code.
这是我的代码。
$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);
I am getting error 550001, here is the complete error:
我收到错误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] =>
)
)
)
I have searched a lot about this but did not get any clue. Can someone help me on this.
我已经搜索了很多关于这个,但没有得到任何线索。有人可以帮我这个。
1 个解决方案
#1
1
It may be due to your application does not include the implicit payment. As far as I knew, PayPal does not supported for the implicit payment for the new application. Check you App ID again to confirm which application has been granted to your account.
这可能是由于您的申请不包括隐含付款。据我所知,PayPal不支持新应用程序的隐式付款。再次检查您的App ID,以确认您的帐户已被授予哪个应用程序。
#1
1
It may be due to your application does not include the implicit payment. As far as I knew, PayPal does not supported for the implicit payment for the new application. Check you App ID again to confirm which application has been granted to your account.
这可能是由于您的申请不包括隐含付款。据我所知,PayPal不支持新应用程序的隐式付款。再次检查您的App ID,以确认您的帐户已被授予哪个应用程序。