0

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

4

1 回答 1

0

在 API 文档中找到此信息

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

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

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

于 2013-04-04T23:14:25.353 回答