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:
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.