【问题标题】:PayPal - CreateRecurringPaymentsProfile - is this request valid?PayPal - CreateRecurringPaymentsProfile - 这个请求有效吗?
【发布时间】:2010-03-11 19:33:49
【问题描述】:

我发送此请求以进行定期付款(对 SandBox 的 SOAP 请求), 但作为回应,我收到有关缺少令牌和其他字段无效(缺少令牌或付款来源)的错误消息。 这个 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>

附:在“Doexpresscheckout”命令之后,我以正确的方式发送此请求。

【问题讨论】:

    标签: xml payment-gateway paypal


    【解决方案1】:

    已解决。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-31
      • 2011-02-15
      • 2014-09-27
      • 2018-05-16
      • 2012-03-05
      • 1970-01-01
      • 2013-07-25
      • 2011-12-12
      相关资源
      最近更新 更多