PayPal自适应付款服务550001错误

问题描述 投票:10回答:1

我已经在管理面板中实现了一项功能,管理员可以将资金发放给卖家(我不确定,但我认为这就是我们所说的自适应支付)。

现在,管理员可以从管理面板向卖方发放资金,买家正在向应用程序管理员支付一定金额。

所有这一切在沙箱上都很完美,但是当我更新了现场的凭据时,它向我显示错误。

这是我的代码。

$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);

我收到错误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] => 
                )
        )
)

我已经搜索了很多关于这一点,但没有得到任何线索。有人可以帮我这个。

php laravel paypal paypal-adaptive-payments
1个回答
1
投票

这可能是由于您的申请不包括隐含付款。据我所知,PayPal不支持新应用程序的隐式付款。再次检查您的App ID,以确认您的帐户已被授予哪个应用程序。

© www.soinside.com 2019 - 2024. All rights reserved.