我试图在这个api上完成postauth,并且我一直得到无效的xml。文档中没有post认证的格式。
这是我发送的
<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>
Response: Invalid XML
明白了,这是正确的格式:
<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和新的格式,它通过了。
post认证不需要授权码吗?根据我的经验,如果没有实际的外部获得的验证码,那么进行post认证的人最终会遇到处理器的问题。
post auth way back用于柜员必须呼叫处理中心以获得电话批准。
我对你的用例很好奇。