Confused, Wechat scanned the code to pay the callback notification (mode 2)

1.notify_url

:http:///payCenter/payFinish
:http://ip:port/payCenter/payFinish

2. Local private network traversal is used. The notification address is as above
everything is normal. After successful payment, you can receive the callback notification from Wechat

.

3. After the application runs on the server and the notification address is paid with the first
above, the callback notification cannot be received, and the following verification has been done:

Open the browser and directly use url to access that address. You can access
Alipay and UnionPay pay. The local test code above
is exactly the same. The only difference is the callback notification address. But I can access that address directly with the browser url
.

I hope that the boss who has the experience of scanning code payment will help me solve my doubts. Thank you very much.

Feb.18,2022


ask and answer questions

Let's talk about the reason first: due to the formal upgrade of the server environment, I will not go to http, and all will go https, but my link is still http, which causes Wechat to send a request to this address, which can not reach the request

.

it was today that I was informed to upgrade the app full go https,. I suddenly found it useful before I knew it.

:
HTTPSHTTP
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bb9893-30168.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bb9893-30168.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?