Joke Collection Website - News headlines - Wechat others scan the code to show me how the red font is displayed.

Wechat others scan the code to show me how the red font is displayed.

1. Set the notify_url parameter in the unified ordering interface of WeChat payment, and set it as the url address dedicated to processing payment results on the server.

2. Write the corresponding code in the processing logic of asynchronous notification of payment results. Usually asynchronous notification results are sent in XML format. You can use some XML parsing libraries, such as DOM4J or JAXB, to parse XML and get the result information. For example, the payment result status code can be obtained, and whether the payment is successful or not can be judged according to the status code.

3. If the payment is successful, use HTML tags to set the display effect. You can add a label before displaying the text of the payment result, so that the text can be displayed in red.