我正在使用 Realex API 与 DCC 的集成,下面是我的代码:
MD5哈希创建:
$tmp = "$timestamp.$merchantid.$orderid.$amountinCents.$currency.$cardnumber";
$md5hash = md5($tmp);
$tmp = "$md5hash.$secret";
$md5hash = md5($tmp);
DCC 请求 xml:
<?xml version='1.0' encoding='UTF-8'?>
<request type='dccrate' timestamp='$timestamp'>
<merchantid>$merchantid</merchantid>
<account>$account</account>
<orderid>$orderid</orderid>
<amount currency='$currency'>$amountinCents</amount>
<card>
<number>$cardnumber</number>
<expdate>$expdate</expdate>
<type>$cardtype</type>
<chname>$cardname</chname>
<cvn>
<number>$cvvno</number>
<presind>1</presind>
</cvn>
</card>
<dccinfo>
<ccp>fexco</ccp>
<type>1</type>
<ratetype>S</ratetype>
</dccinfo>
<autosettle flag='1'/>
<md5hash>$md5hash</md5hash>
<tssinfo>
<address type=\"billing\">
<country>ie</country>
</address>
</tssinfo>
</request>
验证请求 xml:
<?xml version='1.0' encoding='UTF-8'?>
<request type='auth' timestamp='".$timestamp."'>
<merchantid>".$merchantid."</merchantid>
<account>".$account."</account>
<orderid>".$orderid."</orderid>
<amount currency='".$currency."'>".$amountinCents."</amount>
<card>
<number>".$cardnumber."</number>
<expdate>".$expdate."</expdate>
<chname>".$cardname."</chname>
<type>$cardtype</type>
<cvn>
<number>".$cvvno."</number>
<presind>1</presind>
</cvn>
</card>
<autosettle flag='1' />
<md5hash>".$md5hash."</md5hash>
<dccinfo>
<ccp>fexco</ccp>
<type>1</type>
<rate>".$authrate."</rate>
<ratetype>S</ratetype>
<amount currency='".$curr."'>".$amountDcc."</amount>
</dccinfo>
</request>
并使用 curl 将两个 xml 一个接一个地发送到“ https://epage.payandshop.com/epage-remote.cgi ”,付款过程正常。但它没有显示任何弹出窗口供客户选择要收费的货币。
这是用于检查的示例表格
你能告诉我为什么它没有显示或者我需要做任何改变吗?