php - Paypal 自适应支付服务 550001 错误

标签 php laravel paypal paypal-adaptive-payments

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

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

所有这一切在沙盒上运行完美,但是当我将凭据更新到实时时它向我显示错误。

这是我的代码。

$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] => 
                )
        )
)

我已经搜索了很多关于这个但没有得到任何线索。有人可以帮我解决这个问题吗?

最佳答案

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

关于php - Paypal 自适应支付服务 550001 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44368824/

相关文章:

javascript - 如何更改动态元标记 |但在查看源代码中不起作用

php - 尝试从 php 脚本获取 Json 数据时出错

php - Codeigniter - 使用 MySql 按 MaxDate/time 从具有多个重复项的元表中获取数据

php - fetch_array 到 PDO

php - laravel webview 中的 Ajax 文件上传不起作用

javascript - 如何在单击相应页脚时动态获取 Bootstrap 标题值?

php - 计算 Laravel 中的关系数量

rest - 使用 REST api 执行 PayPal 支付

php - PayPal自适应支付链式支付错误

Paypal 快速结帐 L_PAYMENTREQUEST_n_DESCm 未显示在交易详细信息中