PayPal - CreateRecurringPaymentsProfile - 此请求有效吗?
我发送此请求是为了进行定期付款(对 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决。
Resolved.