Home  >  Article  >  Backend Development  >  How to set up a public network test environment for Alipay payment and WeChat payment?

How to set up a public network test environment for Alipay payment and WeChat payment?

WBOY
WBOYOriginal
2016-07-06 13:53:431315browse

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?

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn