function create_native_url($productid) { $commonUtil = new CommonUtil(); $nativeObj["appid"] = $this->appid; $nativeObj["productid"] = urlencode($productid); $nativeObj["timestamp"] = time(); $nativeObj["noncestr"] = $this->create_noncestr(); $nativeObj["sign"] = $this->get_biz_sign($nativeObj); $bizString = $commonUtil->formatBizQueryParaMap($nativeObj, false); return "weixin://wxpay/bizpayurl?" . $bizString; }