java - 在做出 CreateRecurringPaymentsProfileResponseType 响应后,定期付款配置文件中遗漏了一些字段

标签 java paypal paypal-sandbox paypal-subscriptions

在将 createRecurringPaymentProfileResponseType api 调用为 mentioned in my previous question CreateRecurringPaymentsProfileResponseType 之后我在我的沙盒帐户中创建了定期配置文件,但未设置某些字段...我附上了我的 paypal-sandbox 帐户的屏幕截图。如何设置遗漏的字段,请帮我解决这个问题。 ..

enter image description here

已发出 API 请求,

INFO: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes"><soapenv:Header><ns:RequesterCredentials><ebl:Credentials><ebl:Username>sandbox testing id</ebl:Username><ebl:Password>1408690256</ebl:Password><ebl:Signature>VALUE</ebl:Signature></ebl:Credentials></ns:RequesterCredentials></soapenv:Header><soapenv:Body><ns:CreateRecurringPaymentsProfileReq><ns:CreateRecurringPaymentsProfileRequest><ebl:Version>109.0</ebl:Version><ebl:CreateRecurringPaymentsProfileRequestDetails><ebl:CreditCard><ebl:CreditCardNumber>4745425765192217</ebl:CreditCardNumber><ebl:ExpMonth>9</ebl:ExpMonth><ebl:ExpYear>2014</ebl:ExpYear><ebl:CardOwner><ebl:PayerName><ebl:FirstName>Annamalai</ebl:FirstName><ebl:LastName>Lk</ebl:LastName></ebl:PayerName><ebl:Address><ebl:Name></ebl:Name><ebl:CityName>canada</ebl:CityName><ebl:StateOrProvince>NY</ebl:StateOrProvince><ebl:CountryName>IN</ebl:CountryName></ebl:Address></ebl:CardOwner><ebl:CVV2>962</ebl:CVV2></ebl:CreditCard><ebl:RecurringPaymentsProfileDetails><ebl:SubscriberName>null Lk</ebl:SubscriberName><ebl:BillingStartDate>2014-09-03T10:50:29:029UTC</ebl:BillingStartDate></ebl:RecurringPaymentsProfileDetails><ebl:ScheduleDetails><ebl:Description>description</ebl:Description><ebl:PaymentPeriod><ebl:BillingPeriod>Month</ebl:BillingPeriod><ebl:BillingFrequency>12</ebl:BillingFrequency><ebl:Amount currencyID="USD">100</ebl:Amount></ebl:PaymentPeriod></ebl:ScheduleDetails></ebl:CreateRecurringPaymentsProfileRequestDetails></ns:CreateRecurringPaymentsProfileRequest></ns:CreateRecurringPaymentsProfileReq></soapenv:Body></soapenv:Envelope>

返回Response如下:

INFO: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Header><Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType"></Security><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType"><Username xsi:type="xs:string"></Username><Password xsi:type="xs:string"></Password><Signature xsi:type="xs:string"></Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><CreateRecurringPaymentsProfileResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2014-09-03T10:50:33Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">4fcd7b1fa45e</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">109.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">12566246</Build><CreateRecurringPaymentsProfileResponseDetails xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:CreateRecurringPaymentsProfileResponseDetailsType"><ProfileID xsi:type="xs:string">I-SJN77561P75U</ProfileID><ProfileStatus xsi:type="ebl:RecurringPaymentsProfileStatusType">ActiveProfile</ProfileStatus><TransactionID xsi:type="xs:string"></TransactionID></CreateRecurringPaymentsProfileResponseDetails></CreateRecurringPaymentsProfileResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

最佳答案

您的请求不包含电子邮件地址,因此它没有显示在 PayPal 个人资料中。此外,您的请求设置为每 12 个月支付 1 笔 100 美元。那真的是你想要的吗?

金额字段是空白的,因为看起来好像还没有根据个人资料付款。个人资料已创建,但尚未支付任何款项,因此目前还没有任何内容可显示。一旦付款通过,这些就会得到更新。

关于java - 在做出 CreateRecurringPaymentsProfileResponseType 响应后,定期付款配置文件中遗漏了一些字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25636414/

相关文章:

paypal - 测试 PayPal 付款未显示在沙箱中

php - 即使 PayPal 付款失败,Magento 订单状态也会更新为 "Processing"

java - 未找到 sdk_config.properties

java - 在 Jackcess 中对表格进行排序

Java 网站元数据

java - 排序方法无法正常工作

java - 不循环或递归地显示 1 到 100

iphone - 支付宝按钮问题

html - Paypal Express结帐实现

iphone - 关于iphone中的Paypal支付? (说明如下)