The payment is now available, but as described in the official documentation, when the payment is complete, the data is sent to Notify_url and to the URL at the same time.
**用户在成功完成支付后,后台通知(POST)商户服务器(notify_url)支付结果。商户可以使用 notify_url 的通知结果进行个性化页面的展示。**
However, the current situation is not to jump to Notify_url after payment has been completed.
The specific code is as follows:
include_once("WxPayHelper.php");$commonUtil = new CommonUtil();$wxPayHelper = new WxPayHelper();$wxPayHelper->setParameter("bank_type", "WX"); //银行通道类型 固定为大写 'WX'$wxPayHelper->setParameter("body", "BB"); // 商品描述 字符串类123字节以下$wxPayHelper->setParameter("partner", "1219320701"); //商户号 注册时分配的财付通号 partnerId$wxPayHelper->setParameter("out_trade_no", $commonUtil->create_noncestr()); // 商户订单号 商户系统内部的订单号 32个字符内 可包含字母,确保在商户系统唯一$wxPayHelper->setParameter("total_fee", "0.01"); //订单总金额 订单总金额单位为分$wxPayHelper->setParameter("fee_type", "1"); // 支付币种 字符串类型默认值是 1(人民币)$wxPayHelper->setParameter("notify_url", "http://www.baidu.com"); //通知URL 支付完成后 接收通知支付结果的URL 需要给出绝对路径 255字符以内$wxPayHelper->setParameter("spbill_create_ip", $_SERVER['REMOTE_ADDR']); //订单生成的机器IP$wxPayHelper->setParameter("input_charset", "GBK"); //传入参数字符编码
Add: Jump to the Notify_url file directory in the same location as the payment test directory. Server port is 80 port
Reply content:
The payment is now available, but as described in the official documentation, when the payment is complete, the data is sent to Notify_url and to the URL at the same time.
**用户在成功完成支付后,后台通知(POST)商户服务器(notify_url)支付结果。商户可以使用 notify_url 的通知结果进行个性化页面的展示。**
However, the current situation is not to jump to Notify_url after payment has been completed.
The specific code is as follows:
include_once("WxPayHelper.php");$commonUtil = new CommonUtil();$wxPayHelper = new WxPayHelper();$wxPayHelper->setParameter("bank_type", "WX"); //银行通道类型 固定为大写 'WX'$wxPayHelper->setParameter("body", "BB"); // 商品描述 字符串类123字节以下$wxPayHelper->setParameter("partner", "1219320701"); //商户号 注册时分配的财付通号 partnerId$wxPayHelper->setParameter("out_trade_no", $commonUtil->create_noncestr()); // 商户订单号 商户系统内部的订单号 32个字符内 可包含字母,确保在商户系统唯一$wxPayHelper->setParameter("total_fee", "0.01"); //订单总金额 订单总金额单位为分$wxPayHelper->setParameter("fee_type", "1"); // 支付币种 字符串类型默认值是 1(人民币)$wxPayHelper->setParameter("notify_url", "http://www.baidu.com"); //通知URL 支付完成后 接收通知支付结果的URL 需要给出绝对路径 255字符以内$wxPayHelper->setParameter("spbill_create_ip", $_SERVER['REMOTE_ADDR']); //订单生成的机器IP$wxPayHelper->setParameter("input_charset", "GBK"); //传入参数字符编码
Add: Jump to the Notify_url file directory in the same location as the payment test directory. Server port is 80 port
Well, ask yourself to answer .........
Official documentation error data is sent asynchronously to the Notify_url page and does not jump so there is no document on the merchant can use Notify_url to personalize the display
The data sent to Notify_url is divided into two parts that can be composed by $_get and $postStr = $GLOBALS ["Http_raw_post_data"]; To get the data
Big God, there's a question for you. I hope you can help me to answer the following I paid success why did not jump to the Notify_url page do not have no jump I was written in C # He did not execute this page code