PayPal - CreateRecurringPaymentsProfile - 此请求有效吗?

发布于 2024-08-24 23:55:25 字数 2131 浏览 2 评论 0原文

我发送此请求是为了进行定期付款(对 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>

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

I sending this request to make a recurring paypent (SOAP request to SandBox),
but in response I get error message about missing token and other fields invalid (Missing Token or payment source).
What could be wrong with this CreateRecurringPaymentsProfile request?

<?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. I am sending this request the correct way, after "Doexpresscheckout" command.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天生の放荡 2024-08-31 23:55:25

已解决。

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

Resolved.

<CreateRecurringPaymentsProfileRequestDetails>
should be
<CreateRecurringPaymentsProfileResponse xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:CreateRecurringPaymentsProfileResponseDetailsType">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文