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, ...

Menu