【问题标题】:Response from realex: No request type specified来自 realex 的响应:未指定请求类型
【发布时间】:2018-02-23 11:18:41
【问题描述】:

我想通过 realex 提出 paypal 付款的测试请求。

请求看起来像:

curl -X POST \
  https://test.realexpayments.com/epage-remote.cgi \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/xml' \
  -H 'Postman-Token: b83626b9-9472-25d6-cb36-6143a480bf69' \
  -d '<?xml version="1.0" encoding="UTF-8"?><request type="payment-set" timestamp="20180222134621"><merchantid>realexsandbox</merchantid><account>internet</account><orderid>IgGjoyQSRXqRyIvG30S5zQ</orderid><amount currency="EUR">1001</amount><autosettle flag="1"/><sha1hash>1524dcf16adca3af772ff4d6a035dd3789d5a4e9</sha1hash><paymentmethod>paypal</paymentmethod><paymentmethoddetails><ReturnURL>https://www.example.com/success</ReturnURL><CancelURL>https://www.example.com/failure</CancelURL></paymentmethoddetails><sha1hash>2d630f0d401ee62c711db6ab37b79f2ad43f201e</sha1hash></request>'

正文看起来不错,可能端点 https://test.realexpayments.com/epage-remote.cgi 不是正确的,因为我总是得到响应:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response timestamp="20180223104630">
    <result>503</result>
    <message>No request type specified</message>
</response>

有人可以帮我吗?

【问题讨论】:

    标签: paypal realex-payments-api


    【解决方案1】:

    感谢您的提问。测试 PayPal 时,请使用以下端点: https://api.sandbox.realexpayments.com/epage-remote.cgi

    test.realexpayments 端点仅用于在您没有沙盒帐户时快速测试卡支付。

    最好的,

    肖恩

    Realex 支付

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-25
      • 2015-02-24
      • 2015-12-10
      • 2021-08-17
      • 1970-01-01
      • 2021-12-01
      • 2010-11-25
      • 2018-08-01
      相关资源
      最近更新 更多