参数说明

8201900xx:未来之窗商户号

http://n回调地址

http://c:回调地址

https://51.onelink.ynwlzc.cn/o2o/tpl/Merchant/default/common/market/js/cyberwin_offline_cyberwinpay.js?v=20200709112945620200223


<script type="text/javascript" src="https://51.onelink.ynwlzc.cn/o2o/tpl/Merchant/default/common/market/js/cyberwin_offline_cyberwinpay.js?v=20200709112945620200223">

</script>


<input type="text" name="name" id="name" value="测试订单名称">

<input type="text" name="orderid" id="orderid" value="1265671527153721437">

<input type="text" name="price" id="price" value="0.01">

<input type="button" onclick="pay();" value="支付">

<script type="text/javascript" >

   function pay(){

var name= $("#name").val();

var orderid= $("#orderid").val();

var price= $("#price").val();


var timestamp = Date.parse(new Date());

 

     var pay=new CyberWinPayPackage("8201900xx","h5","","h5o","http://n","http://c");

   var obj_pay_param = {

name :name,order_id:orderid,price :price};

var purl= pay.pay(obj_pay_param);

//alert(purl);


}


</script>