Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PayPal Adaptive Payments Service 550001 Error

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****[email protected]"
    +phone: null
    +primary: null
    +invoiceId: null
    +paymentType: null
    +paymentSubType: null
    +accountId: null
  }
]
*/
$receiverList = new ReceiverList($receiver);
$payRequest->receiverList = $receiverList;
$payRequest->senderEmail = "[email protected]";

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

like image 477
Anshul Mishra Avatar asked Jun 05 '17 12:06

Anshul Mishra


1 Answers

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.

like image 196
Athrun Zara Avatar answered Nov 15 '22 12:11

Athrun Zara