2010-03-11 96 views
0

我發送這個請求來做定期支付(對SandBox的SOAP請求), ,但是作爲響應,我收到有關丟失令牌和其他字段無效(缺少令牌或支付來源)的錯誤消息。 這可能是什麼問題CreateRecurringPaymentsProfile請求?PayPal - CreateRecurringPaymentsProfile - 此請求是否有效?

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope 
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
    <SOAP-ENV:Header> 
     <RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" 
SOAP-ENV:mustUnderstand="1"> 
     <Credentials xmlns="urn:ebay:apis:eBLBaseComponents"> 
      <Username>xxxxx_biz_api1.gmail.com</Username> 
      <Password>xxxxxxx</Password> 
      <Subject/> 
     </Credentials> 

     </RequesterCredentials> 
    </SOAP-ENV:Header> 
<SOAP-ENV:Body> 
     <CreateRecurringPaymentsProfileReq xmlns="urn:ebay:api:PayPalAPI"> 
     <CreateRecurringPaymentsProfileRequest> 
      <Version 
       xmlns="urn:ebay:apis:eBLBaseComponents" 
       xsi:type="xsd:string">58.0</Version> 



<CreateRecurringPaymentsProfileRequestDetails> 

      <RecurringPaymentsProfileDetails xmlns="urn:ebay:apis:eBLBaseComponents"> 

      <BillingStartDate></BillingStartDate> 
    </RecurringPaymentsProfileDetails> 

<ScheduleDetails> 
    <Description>Must match</Description> 
    <PaymentPeriod> 

    <BillingPeriod>Day</BillingPeriod> 
    <BillingFrequency>1</BillingFrequency> 

    <Amount>39.95</Amount> 
    </PaymentPeriod> 
</ScheduleDetails> 

     <Token>EC-480620864W522011V</Token> 

</CreateRecurringPaymentsProfileRequestDetails> 
     </CreateRecurringPaymentsProfileRequest> 
     </CreateRecurringPaymentsProfileReq> 

    </SOAP-ENV:Body> 

P.S.我在「Doexpresscheckout」命令後以正確的方式發送此請求。

回答

0

已解決。

<CreateRecurringPaymentsProfileRequestDetails> 
should be 
<CreateRecurringPaymentsProfileResponse xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:CreateRecurringPaymentsProfileResponseDetailsType"> 
相關問題