2013-04-02 13 views
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>[email protected]</email> 
      <primary>false</primary> 
      <invoiceId>123456</invoiceId> 
      <paymentType>PERSONAL</paymentType> 
     </receiver> 
    </receiverList> 
    <senderEmail>[email protected]</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美元。卡狀態是「激活」。爲什麼我會收到「用戶不被允許執行此操作」?

回答

0

發現在API文檔此信息

注:FundingConstraint不可與標準 權限級別API調用者;欲瞭解更多信息,請參閱自適應支付權限級別部分。

如果我從請求中刪除fundingConstraint節點,我會得到一個成功的響應。

是否有可能測試沙盒中需要更高排毒水平的請求?