【问题标题】:JSON Parser Error when selecting the PayPal payment method on Spree在 Spree 上选择 PayPal 付款方式时出现 JSON 解析器错误
【发布时间】:2015-05-10 23:01:37
【问题描述】:

我已经成功安装了 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 响应?

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

【问题讨论】:

    标签: ruby-on-rails soap paypal-sandbox spree spree-paypal-express


    【解决方案1】:

    您用于 paypal 的凭据似乎不正确。请在您的后端检查您的贝宝设置。由于您使用的是better_spree_paypal_express,因此您必须确保指定正确的Solution(标记、鞋底等)。除此之外,登录名/密码/签名/服务器也需要正确配置。

    请注意:如果是开发环境,需要使用sandbox服务器设置。

    【讨论】:

    • 嗨@IshaanS 我已经尝试过解决方案 Mark 和 Sole,指定沙箱,因为它正在开发中。 !仍然遇到同样的问题。我的其他登录凭据似乎没问题,因为当我将其更改为错误的内容时,我会收到与错误凭据有关的不同错误。
    猜你喜欢
    • 2021-06-04
    • 2015-04-27
    • 2015-08-31
    • 1970-01-01
    • 2016-03-12
    • 2011-07-02
    • 2015-07-15
    • 2017-02-02
    • 2012-06-22
    相关资源
    最近更新 更多