小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因

微信小程序,微信公开课,小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因 微信公开课

如何看待微信公开课小程序热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」
摘要:小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因
展开:扫码支付,收不到回调信息,请大师帮忙看下什么原因,要怎么解决一直请求下面这个,index.php?routeextension/payment/wechat_pay/isOrderPaidorder_id59index.php?routeextension/payment/wechat_pay/isOrderPaidorder_id59index.php?routeextension/payment/wechat_pay/isOrderPaidorder_id59index.php?routeextension/payment/wechat_pay/isOrderPaidorder_id59index.php?routeextension/payment/wechat_pay/isOrderPaidorder_id59扫码回调链接设置如下:其他该配的域名都配置了,http://xxxx.yyyy.com/payment_callback/wechat_pay附代码如下:?php/@packageOpenCart@authorMengWenbin@copyrightCopyright(c)20102017,ChengduGuangdaNetworkTechnologyCo.Ltd.(https://www.opencart.cn/)@licensehttps://opensource.org/licenses/GPL3.0@linkhttps://www.opencart.cn/classControllerExtensionPaymentWechatPayextendsController{publicfunctionindex(){$data[button_confirm]$thislanguageget(button_confirm);$data[redirect]$thisurllink(extension/payment/wechat_pay/qrcode);return$thisloadview(extension/payment/wechat_pay,$data);}publicfunctionqrcode(){$thisloadlanguage(extension/payment/wechat_pay);$thisdocumentsetTitle($thislanguageget(heading_title));$thisdocumentaddScript(catalog/view/javascript/qrcode.js);$data[breadcrumbs]array();$data[breadcrumbs][]array(text$thislanguageget(text_home),href$thisurllink(common/home));$data[breadcrumbs][]array(text$thislanguageget(text_checkout),href$thisurllink(checkout/checkout,,true));$data[breadcrumbs][]array(text$thislanguageget(text_qrcode),href$thisurllink(extension/payment/wechat_pay/qrcode));$thisloadmodel(checkout/order);$order_info$thismodel_checkout_ordergetOrder($thissessiondata[order_id]);$order_idtrim($order_info[order_id]);$data[order_id]$order_id;$subjecttrim($thisconfigget(config_name));$currency$thisconfigget(payment_wechat_pay_currency);$total_amounttrim($thiscurrencyformat($order_info[total],$currency,,false));$notify_urlHTTPS_SERVER.payment_callback/wechat_pay;//$thisurllink(wechat_pay/callback);$optionsarray(appid$thisconfigget(payment_wechat_pay_app_id),appsecret$thisconfigget(payment_wechat_pay_app_secret),mch_id$thisconfigget(payment_wechat_pay_mch_id),partnerkey$thisconfigget(payment_wechat_pay_api_secret));WechatLoader::config($options);$paynewWechatWechatPay();$result$paygetPrepayId(NULL,$subject,$order_id,$total_amount100,$notify_url,$trade_typeNATIVE,NULL,$currency);$data[error];$data[code_url];if($resultFALSE){$data[error_warning]$payerrMsg;}else{$data[code_url]$result;}$data[action_success]$thisurllink(checkout/success);$data[column_left]$thisloadcontroller(common/column_left);$data[column_right]$thisloadcontroller(common/column_right);$data[content_top]$thisloadcontroller(common/content_top);$data[content_bottom]$thisloadcontroller(common/content_bottom);$data[footer]$thisloadcontroller(common/footer);$data[header]$thisloadcontroller(common/header);$thisresponsesetOutput($thisloadview(extension/payment/wechat_pay_qrcode,$data));}publicfunctionisOrderPaid(){$jsonarray();$json[result]false;if(isset($thisrequestget[order_id])){$order_id$thisrequestget[order_id];$thisloadmodel(checkout/order);$order_info$thismodel_checkout_ordergetOrder($order_id);if($order_info[order_status_id]$thisconfigget(payment_wechat_pay_completed_status_id)){$json[result]true;}}$thisresponseaddHeader(ContentType:application/json);$thisresponsesetOutput(json_encode($json));}publicfunctioncallback(){$optionsarray(appid$thisconfigget(payment_wechat_pay_app_id),appsecret$thisconfigget(payment_wechat_pay_app_secret),mch_id$thisconfigget(payment_wechat_pay_mch_id),partnerkey$thisconfigget(payment_wechat_pay_api_secret));WechatLoaderr::config($options);$paynewWechatWechatPay();$notifyInfo$paygetNotify();if($notifyInfoFALSE){$thislogwrite(WechatPayError:.$payerrMsg);}else{if($notifyInfo[result_code]SUCCESS$notifyInfo[return_code]SUCCESS){$order_id$notifyInfo[out_trade_no];$thisloadmodel(checkout/order);$order_info$thismodel_checkout_ordergetOrder($order_id);if($order_info){$order_status_id$order_info[order_status_id];if(!$order_status_id){$thismodel_checkout_orderaddOrderHistory($order_id,$thisconfigget(payment_wechat_pay_completed_status_id));}}returnxml([return_codeSUCCESS,return_msgDEALWITHSUCCESS]);}}}}了解更多

「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」热门讨论订阅

微信小程序,微信公开课,小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因
订阅小程序

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」

微信公开课小程序热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「小程序扫码支付,收不到回调信息,请大师帮忙看下什么原因」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。