PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style>*{font-size:13px;margin:0 auto;}input[type="text"]{width:500px;} </style> </head> <body> <?php include './TrustRsaSignClass.php'; $mydata = array( "version"=>"2.0", "merId"=>"168168", "transDate"=>date("Ymd",time()), "seqId"=>date("YmdHis",time()), "transTime"=>date("His",time()), "amount"=>"1000.88", "notifyUrl"=>"http://www.baidu.com", "payType"=>"00", "channel"=>"02", "buyerId"=>"buyerId", "buyerIp"=>"192.168.1515.15", "buyerName"=>"张厚" ); //merchant private key $rsa_private_key_dir = "./rsa_private_key.pem"; $signClass = new RsaSignClass(); $sign = $signClass->rsaSign($mydata,$rsa_private_key_dir); ?> <form action="https://xxx/pain/pay" method="post"> <table> <tr><td>version</td><td><input type="text" name="version" value="<?php echo $mydata['version']?>" /></td></tr> <tr><td>merId</td><td><input type="text" name="merId" value="<?php echo $mydata['merId']?>" /></td></tr> <tr><td>transDate</td><td><input type="text" name="transDate" value="<?php echo $mydata['transDate']?>" /></td></tr> <tr><td>seqId</td><td><input type="text" name="seqId" value="<?php echo $mydata['seqId']?>" /></td></tr> <tr><td>transTime</td><td><input type="text" name="transTime" value="<?php echo $mydata['transTime']?>" /></td></tr> <tr><td>amount</td><td><input type="text" name="amount" value="<?php echo $mydata['amount']?>" /></td></tr> <tr><td>notifyUrl</td><td><input type="text" name="notifyUrl" value="<?php echo $mydata['notifyUrl']?>" /></td></tr> <tr><td>payType</td><td><input type="text" name="payType" value="<?php echo $mydata['payType']?>" /></td></tr> <tr><td>buyerId</td><td><input type="text" name="buyerId" value="<?php echo $mydata['buyerId']?>" /></td></tr> <tr><td>buyerIp</td><td><input type="text" name="buyerIp" value="<?php echo $mydata['buyerIp']?>" /></td></tr> <tr><td>buyerName</td><td><input type="text" name="buyerName" value="<?php echo $mydata['buyerName']?>" /></td></tr> <tr><td>sign</td><td><input type="text" name="sign" value="<?php echo $sign?>" /></td></tr> <tr><td></td><td><input type="submit" value="Submit"></td></tr> </table> </form> </body> </html>
Show:  
Copy Clear