to_pay.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. if (!defined('IN_MYMPS')) {
  3. exit();
  4. }
  5. $v_mid = $payr['payuser'];
  6. $key = $payr['paykey'];
  7. $v_url = $PayReturnUrlQz . '/include/payment/chinabank/payend.php';
  8. $remark2 = '[url:=' . $PayReturnUrlQz . '/include/payment/chinabank/notify.php]';
  9. $v_moneytype = 'CNY';
  10. $v_amount = $money;
  11. $v_oid = date('Ymd') . '-' . $v_mid . '-' . date('His');
  12. $ddno = $ddno ? $ddno : $timestamp;
  13. msetcookie('checkpaysession', $ddno, 0);
  14. $text = $v_amount . $v_moneytype . $v_oid . $v_mid . $v_url . $key;
  15. $v_md5info = strtoupper(md5($text));
  16. $remark1 = $ddno;
  17. ToPayMoney($v_amount, $ddno, $uid, $s_uid, 'chinabank');
  18. echo '<html>
  19. <title>在线支付</title>
  20. <meta http-equiv="Cache-Control" content="no-cache"/>
  21. <body>
  22. <form method="post" name="dopaypost" id="dopaypost" action="https://pay3.chinabank.com.cn/PayGate">
  23. <input type="hidden" name="v_mid" value="';
  24. echo $v_mid;
  25. echo '">
  26. <input type="hidden" name="v_oid" value="';
  27. echo $v_oid;
  28. echo '">
  29. <input type="hidden" name="v_amount" value="';
  30. echo $v_amount;
  31. echo '">
  32. <input type="hidden" name="v_moneytype" value="';
  33. echo $v_moneytype;
  34. echo '">
  35. <input type="hidden" name="v_url" value="';
  36. echo $v_url;
  37. echo '">
  38. <input type="hidden" name="v_md5info" value="';
  39. echo $v_md5info;
  40. echo '">
  41. <input type="hidden" name="remark1" value="';
  42. echo $remark1;
  43. echo '">
  44. <input type="hidden" name="remark2" value="';
  45. echo $remark2;
  46. echo '">
  47. <input type="submit" style="font-size: 9pt" value="在线支付" name="v_action">
  48. </form>
  49. <script>
  50. document.getElementById(\'dopaypost\').submit();
  51. </script>
  52. </body>
  53. </html>';
  54. ?>