2

我已经成功安装了 better_spree_paypal_express 扩展,但是每次我选择 PayPal 支付选项时,我都会收到以下错误。

757: unexpected token at '<?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:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" 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">xxx</Username><Password xsi:type="xs:string">xxx</Password><Signature xsi:type="xs:string">xxx</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Timeout processing request</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>'

我在网上搜索了可能的解决方案,但没有成功。

我也想知道为什么它是一个 SOAP 响应?

请问有没有人遇到过这个问题或者知道解决这个问题的方法。

4

1 回答 1

0

It seems like the credentials you are using for paypal are incorrect. Please check your settings for paypal in your backend. Since you are using the better_spree_paypal_express, you must make sure you are specifying the correct Solution (Mark, Sole etc). Apart from that, the login/password/signature/server need to be correctly configured as well.

Please note: If this is the development environment, you need to use the sandbox server settings.

于 2015-03-11T05:54:12.873 回答