【问题标题】:First Data Global Gateway API 1.1 and doing a postauth. Invalid XMLFirst Data Global Gateway API 1.1 并进行 postauth。无效的 XML
【发布时间】:2016-08-15 20:41:58
【问题描述】:

我正在尝试在此 api 上完成 postauth,但我不断收到无效的 xml。该文档中没有发布身份验证的格式。

这是我要发送的内容

<order>
<payment>
<chargetotal>.80</chargetotal>
</payment>
<orderoptions>
<result>LIVE</result>
<ordertype>POSTAUTH</ordertype>
<oid>40FAEB4A-57B1EFCC-666-1340B8</oid>
<tdate>1471279052</tdate>
</orderoptions>
<transactiondetails>
<transactionorigin>RETAIL</transactionorigin>
<terminaltype>POS</terminaltype>
</transactiondetails>
<merchantinfo>
<configfile>1001343551</configfile>
</merchantinfo>
</order>

响应:无效的 XML

【问题讨论】:

    标签: credit-card merchant-account


    【解决方案1】:

    想通了,这是正确的格式:

    <order>
      <merchantinfo>
        <configfile>1909449616</configfile>
      </merchantinfo>
      <orderoptions>
     <ordertype>postauth</ordertype>
      <result>live</result>
     </orderoptions>
      <payment>
    <chargetotal>0.80</chargetotal>
     </payment>
    <transactiondetails>
       <oid>0AAE1204-57B23716-297-1340B8</oid>
    </transactiondetails>
    </order>
    

    .80 也引起了问题,我将其更改为 0.80 和新格式,并且通过了。

    【讨论】:

    • 对不起,它不想正确缩进
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-31
    • 2022-12-29
    • 1970-01-01
    • 2020-08-30
    • 2011-02-02
    • 2018-07-01
    相关资源
    最近更新 更多