为什么在PayPal Sandbox中获取“不允许用户执行此操作”

时间:2013-04-02 21:49:26

标签: paypal-sandbox

我正在将以下消息发布到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美元。卡状态为“已激活”。为什么我会收到“不允许用户执行此操作”?

1 个答案:

答案 0 :(得分:0)

在API文档中找到此信息

  

注意:标准的API调用者无法使用FundingConstraint   许可级别;有关更多信息,请参阅自适应部分   付款许可级别。

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

是否可以测试沙盒中需要更高的permsission级别的请求?