关于微信支付回调
php 微信支付回调的通用处理- 次要验证
<?php
//订单回调
$xml = file_get_contents('php://input');
$data = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
if($data["result_code"]=="SUCCESS" && $data["return_code"]=="SUCCESS"){
$paymsg=Db::name("wxpay_log")->where("no",$data["out_trade_no"])->find();
if($paymsg['status']==1){
return "SUCCESS";
}
}
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 阿牛哥
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果