如何为我的网站集成Realex支付的3D安全流程


How to integrate Realex Payment's 3D secure process for my website?

为了在我的网站中集成Realex支付(3D安全),我使用了以下代码,这是我从示例中得到的。

为了为我们的客户付款,我可以在xml文件中请求商家ID,订单ID,持卡人姓名,到期日期,卡号,金额等,因此:

<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 安全流程进行验证

使用:

request type='3ds-verifyenrolled'

而不是:

request type='auth'