我有一个使用paypal结帐的网络应用。几天前它运作良好。现在,我尝试进行结账,Paypal重置连接。我正在使用沙盒帐户,将请求发送到https://api.sandbox.paypal.com/2.0/。我有Paypal的有效证书。我的XML请求是:
<?xml version="1.0" encoding="utf-8"?>
<xsi:SetExpressCheckoutReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetExpressCheckoutRequest xmlns="urn:ebay:api:PayPalAPI">
<ErrorLanguage xmlns="urn:ebay:apis:eBLBaseComponents">en_US</ErrorLanguage>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">98.0</Version>
<SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents">
<OrderTotal currencyID="USD" />
<ReturnURL>https://[my url site]?ppec=return</ReturnURL>
<CancelURL>https://[my url site]/checkout.aspx?ppec=cancel</CancelURL>
<Custom>100232</Custom>
<cpp-header-image>https://[my url site]/themes/default/images/layout/invoice_logo.gif</cpp-header-image>
<PaymentAction>Sale</PaymentAction>
<BuyerEmail>some@email.com</BuyerEmail>
<ChannelType>Merchant</ChannelType>
<PaymentDetails>
<OrderTotal currencyID="USD">280.51</OrderTotal>
<ItemTotal currencyID="USD">270.00</ItemTotal>
<ShippingTotal currencyID="USD">10.51</ShippingTotal>
<HandlingTotal currencyID="USD">0.00</HandlingTotal>
<TaxTotal currencyID="USD">0.00</TaxTotal>
<InvoiceID>100232</InvoiceID>
<ShipToAddress>
<Name>NAME SURNAME</Name>
<Street1>717 Some st</Street1>
<Street2 />
<CityName>City</CityName>
<StateOrProvince>ST</StateOrProvince>
<Country>US</Country>
<Phone>+15551234567</Phone>
<PostalCode>00000</PostalCode>
</ShipToAddress>
<PaymentDetailsItem>
<Name>Triángulo Isósceles</Name>
<Number>4444</Number>
<Quantity>1</Quantity>
<Amount currencyID="USD">300.00</Amount>
</PaymentDetailsItem>
<PaymentDetailsItem>
<Name>Discounts</Name>
<Quantity>1</Quantity>
<Amount currencyID="USD">-30.00</Amount>
</PaymentDetailsItem>
</PaymentDetails>
</SetExpressCheckoutRequestDetails>
</SetExpressCheckoutRequest>
</xsi:SetExpressCheckoutReq>
一个月前,我将安全协议类型从Tls更改为Tls1.2。我做出改变时的测试还可以,但知道不行。我跟踪了与Wireshark的连接,我从沙盒Paypal(173.0.82.78)获得了
443 → 60191 [RST, ACK] Seq=4163 Ack=2365 Win=0 Len=0
有什么想法吗?
感谢。对不起我的英文。如果你因此不明白,请不要犹豫,问我什么。
答案 0 :(得分:1)
paypal提供的许多api取决于您的位置。 请先检查您所在国家/地区是否支持其他API。 转到http://developer.paypal.com这是最大的文档和指南使用paypal apis我认为快递支付是最好的,它将连接到paypal网站,结账将在非常安全的地方完成。文档和api属性都记录在paypal网站上,并提供了非常有用的示例。 您必须使用查询字符串将您的请求发送到此网址https://api.sandbox.paypal.com/2.0/。 您必须发送的属性可以在paypal网站上找到快速结账api休息。 祝你好运