【问题标题】:Why getting "User is not allowed to perform this action" in PayPal Sandbox为什么在 PayPal Sandbox 中出现“不允许用户执行此操作”
【发布时间】:2013-04-02 21:49:26
【问题描述】:

我正在向https://svcs.sandbox.paypal.com/AdaptivePayments/Pay 发布以下消息:

<?xml version="1.0" encoding="utf-16"?>
<PayRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <requestEnvelope>
        <detailLevel>ReturnAll</detailLevel>
        <errorLanguage>en_US</errorLanguage>
    </requestEnvelope>
    <clientDetails>
        <ipAddress>127.0.0.1</ipAddress>
        <deviceId>platformSDKDotNetSample</deviceId>
        <applicationId>APP-80W284485P519543T</applicationId>
        <customerType>Developer</customerType>
        <partnerName>GreenDot</partnerName>
        <customerId>GreenDot</customerId>
    </clientDetails>
    <actionType>PAY</actionType>
    <cancelUrl></cancelUrl>
    <currencyCode>USD</currencyCode>
    <memo>MP ref 8050042402450937112</memo>
    <receiverList>
        <receiver>
            <amount>5</amount>
            <email>koseas@greendotcorp.com</email>
            <primary>false</primary>
            <invoiceId>123456</invoiceId>
            <paymentType>PERSONAL</paymentType>
        </receiver>
    </receiverList>
    <senderEmail>PersonalTestAccount@greendotcorp.com</senderEmail>
    <returnUrl></returnUrl>
    <trackingId>111111</trackingId>
    <fundingConstraint>
        <allowedFundingType>
            <fundingTypeInfo>
                <fundingType>RECEIVABLE</fundingType>
            </fundingTypeInfo>
        </allowedFundingType>
    </fundingConstraint>
</PayRequest>

并得到此响应:

<ns3:FaultMessage xmlns:ns3="http://svcs.paypal.com/types/common" 
                  xmlns:ns2="http://svcs.paypal.com/types/ap">
    <responseEnvelope>
        <timestamp>2013-04-02T14:25:32.304-07:00</timestamp>
        <ack>Failure</ack>
        <correlationId>54974e7a32854</correlationId>
        <build>5563463</build>
    </responseEnvelope>
    <error>
        <errorId>550001</errorId>
        <domain>PLATFORM</domain>
        <subdomain>Application</subdomain>
        <severity>Error</severity>
        <category>Application</category>
        <message>User is not allowed to perform this action</message>
        <parameter>Sender is not allowed to perform this action</parameter>
    </error>
</ns3:FaultMessage>

发件人电子邮件是我设置的个人帐户。它已经过验证,余额为 5000 美元。卡状态为“已激活”。为什么我会收到“不允许用户执行此操作”?

【问题讨论】:

    标签: paypal-sandbox


    【解决方案1】:

    在 API 文档中找到此信息

    注意:FundingConstraint 对具有标准的 API 调用者不可用 权限级别;有关详细信息,请参阅自适应部分 付款权限级别。

    如果我从请求中删除了fundingConstraint 节点,我会得到一个成功的响应。

    是否可以在沙箱中测试需要更高权限级别的请求?

    【讨论】:

      猜你喜欢
      • 2012-07-01
      • 2013-09-25
      • 2013-11-08
      • 2015-02-06
      • 2013-12-02
      • 2020-01-11
      • 2016-09-29
      • 2012-09-24
      • 1970-01-01
      相关资源
      最近更新 更多