WeChat Mini Programs payment callback address how to write?

problem description

when using WeChat Pay, my backend is built using nodejs. When placing an order uniformly, one parameter is the callback address of successful payment. The value I give is notify_url="127.0.0.1:3000",. When Mini Program pays successfully, my backend notify_url does not receive the information returned by Wechat server.

related codes

is the code in my callback address wrong?

Aug.30,2021

127.0.0.1 is the local address. How can Wechat access it? to give the public network address


asynchronous callback, you need an Internet address. How to see the result? just save everything received to the log in the API

.
  • Webpack output publicPath

    the local picture Mini Program used at the beginning. later, in order to reduce the size of the package, you have to put the picture on cdn. Mini Program is packaged with webpack. If you want to change the path of webpack output publicPath directly, ...

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-1b3b877-2c294.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-1b3b877-2c294.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?