为了在我的网站上集成Realex支付(3D安全),我使用了下面的代码,这是我从一个例子中得到的。
为了为我们的客户付款,我可以用xml文件请求文件中的商品、订单、持卡人姓名、日期、卡号、金额等。
<request type='auth' timestamp='123123123123'>
<merchantid>name of merchant</merchantid>
<account>internet</account>
<orderid> order id </orderid>
<amount currency='GBP'>20</amount>
<card>
<number>1234567894561235</number>
<expdate>0912</expdate>
<type>Visa</type>
<chname>card holder name</chname>
</card>
<autosettle flag='1'/>
<md5hash>1bb4baxse4534g541sdw233c4ac20ba</md5hash>
<tssinfo>
<address type='billing'>
<country> country code </country>
</address>
</tssinfo>
</request>在响应中,我得到了以下信息:
<response timestamp="20120808063848">
<merchantid>Name Of Merchant</merchantid>
<account>internet</account>
<orderid>orderid</orderid>
<authcode>something</authcode>
<result>00</result>
<cvnresult>U</cvnresult>
<avspostcoderesponse>U</avspostcoderesponse>
<avsaddressresponse>U</avsaddressresponse>
<batchid> batchid </batchid>
<message>[ test system ] Authorised 111111 </message>
<pasref>14digit number</pasref>
<timetaken>1</timetaken>
<authtimetaken>1</authtimetaken>
<cardissuer>
<bank> name of bank </bank>
<country> country name </country>
<countrycode> country code </countrycode>
<region>EUR</region>
</cardissuer>
<md5hash>3656d456Hfgfdac45dsf453d96a08d7d9</md5hash>
</response>接下来,我们需要添加3D安全流程来验证。
发布于 2013-01-20 01:01:30
使用:
request type='3ds-verifyenrolled'而不是:
request type='auth'https://stackoverflow.com/questions/11882085
复制相似问题