Home > Article > Backend Development > How to set up a public network test environment for Alipay payment and WeChat payment?
Help for new back-end users: How to set up a public network test environment for Alipay payment and WeChat payment?
Example: After the user jumps to Alipay and completes the payment, Alipay will notify the merchant website of the result data through proactive notification by the server. ----- Therefore, this notification cannot be obtained in the local environment, and a public network test environment must be set up.
Please tell me what mature solutions are available?
Help for new back-end users: How to set up a public network test environment for Alipay payment and WeChat payment?
Example: After the user jumps to Alipay and completes the payment, Alipay will notify the merchant website of the result data through proactive notification by the server. ----- Therefore, this notification cannot be obtained in the local environment, and a public network test environment must be set up.
Please tell me what mature solutions are available?
Recommend a tool: ngrok
It is very convenient and you can use their server. Currently, our company built it by ourselves
Alipay return can be tested locally, but notification must be done externally. . If you just want to test the returned data, you can construct the data yourself and post it to your local area through tools or code for development and testing. In a word, the code must be placed on the external network for testing. Otherwise, the return mode of alipay can only be tested. All asynchronous notifications must be accessible from the external network.
You can write your own interface simulator