手机网页调微信支付,设置里notify_url没回调
各项设置应该都正常,因为支付已经ok了,在公众号后台能看到支付成功的流水。
调的js接口,只接到了js返回的get_brand_wcpay_request:ok,设置的回调通知地址毫无反应(用日志调试)。
按照官方出的demo+thinkphp框架做的,求解救。折腾好久
回复讨论(解决方案)
$notify_url = 'http://'.$_SERVER['HTTP_HOST'].__ROOT__.'/wx_pay_notify.php';
我没有做urlencode
$notify_url = 'http://'.$_SERVER['HTTP_HOST'].__ROOT__.'/wx_pay_notify.php';
我没有做urlencode
这是根目录,不在网站根目录怎搞
wx_pay_notify.php内容如下
<?php$_GET['g'] = 'Pay';$_GET['m'] = 'Wxpay';$_GET['a'] = 'notify';include_once("index.php");
你的回调地址要可以访问才行。
与是否在根目录没有关系。
楼主的问题解决了没?我jsapi和原生的支付都没问题。但tx都没发送数据到回调页面。我回调页面也是外网可访问的地址、与支付在同一目录。郁闷啊
NOTIFY_URL的地址配置的是urlencode的结果?
似乎不妥吧。
如果设置为原始的raw url有问题么?
直接写完整的地址试试,不要用变量之类
回调肯定是没了,jsapi用着坑太多:
1. 只能服务号里跳转去支付,订阅号里支付会提示不能跨号支付,支付又成了专号专用的了,文档里没看到,结果最后发短信给用户,加微信群,然后发链接给支付
2. 有的用户获取不到openid,空的
3. 支付成功页面必须用户点击完成,关闭微信弹出成功提示页面,才有js通知支付状态
4. 各种key有时效2小时,偏偏还有每天限量取的坑
5. 我每天要跑程序去对比订单,查询订单是不是支付成功,让我的数据跟微信数据同步
6. 订单号在微信公众号流水里查不到,要到商户后台去查,还不是财付通的商户后台
7. 财付通的这里面的订单号还有好几个,财付通的我反正是不想碰

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

Laravel simplifies HTTP verb handling in incoming requests, streamlining diverse operation management within your applications. The method() and isMethod() methods efficiently identify and validate request types. This feature is crucial for building

The Storage::download method of the Laravel framework provides a concise API for safely handling file downloads while managing abstractions of file storage. Here is an example of using Storage::download() in the example controller:
