setEncrypt("payid", $order_no);//订单号 $jubaopay->setEncrypt("partnerid", C('jubaobar.partner'));//商户号 $jubaopay->setEncrypt("amount", $amount);//金额 $jubaopay->setEncrypt("payerName", $payerName);//商品名 $jubaopay->setEncrypt("remark", '梦创科技');//备注 $jubaopay->setEncrypt("returnURL", $returnURL);// $jubaopay->setEncrypt("callBackURL", "http://".$_SERVER['HTTP_HOST']."/callback.php/Jubaobar/jubaobar_notify");//回调 //对交易进行加密=$message并签名=$signature $jubaopay->interpret(); $message=$jubaopay->message; $signature=$jubaopay->signature; //将message和signature一起aPOST到聚宝支付 $html="
'; $html.=""; return $html; } }