PHPåé¶èæ¯ä»æ¥å£è°ç¨é®é¢
//å¨å·¥åæ¯ä»æ¥å£ä¹åè¦æ¾å°å·¥è¡æä¾çæ¥å£æ件级dllæ件
//å°è®¢åç¾åæ°æ®å
¬é¥å å¯æä¾ç»å·¥è¡æå®é¡µé¢
//ç»ç»è¦ç¾åçæ°æ®ä¸²
$src="ICBC_PERBANK_B2C1.0.0.0".$infomer["merid"].$infomer["meracct"].$returnaddress."HS".$ddnumber.$amount."0010".$nowtime."0";
$com=new com('ICBCEBANKUTIL.B2CUtil');
$rc=$com->init("c:\WINDOWS\user.crt","c:\WINDOWS\user.crt","c:\WINDOWS\user.key","11111111");
$ssrc=$com->signC($src, strlen($src)); //订åç¾åæ°æ®
$rc=$com->verifySignC($src,strlen($src), $ssrc, strlen($ssrc));
$cert=$com->getCert(1); //ååè¯ä¹¦å
¬é¥
//å°åæ·è¯ä¹¦åå¨å°c:\WINDOWSç®å½ä¸ï¼ç¶åå建form表åï¼å°æå®çæ°æ®æ交å°å·¥è¡æå®çç½é¡µä¸
<!--æ¯ä»å®æ¯ä»çæ¥å£æä½ï¼æ交çæ°æ®-->
<td width="100"><a href="<{$link}>"><img src="images/sy_19.gif" width="90" height="25" border="0"></a></td>
<!--ââââââââââââââââââ-->
<!--å·¥è¡æ¯ä»çæ¥å£æä½ï¼æ交çæ°æ®-->
<form action="
https://mybank.icbc.com.cn/" method="post" name="form_bank">
<input name="interfaceName" type="hidden" value="ICBC_PERBANK_B2C"/>
<input name="interfaceVersion" type="hidden" value="1.0.0.0"/>
<input name="orderid" type="hidden" value="<{$ddnumber}>"/>
<input name="amount" type="hidden" value="<{$amount}>"/>
<input name="curType" type="hidden" value="001"/>
<input name="merID" type="hidden" value="<{$merid}>"/>
<input name="merAcct" type="hidden" value="<{$meracct}>"/>
<input name="verifyJoinFlag" type="hidden" value="0"/>
<input name="notifyType" type="hidden" value="HS"/>
<input name="merURL" type="hidden" value="<{$returnaddress}>"/>
<input name="resultType" type="hidden" value="0"/>
<input name="orderDate" type="hidden" value="<{$nowtime}>"/>
<input name="merSignMsg" type="hidden" value="<{$ssrc}>" />
<input name="merCert" type="hidden" value="<{$cert}>" />
</form>