Alipay scan code payment successfully asynchronously calls back the processing function, and the information needs to be returned to tell Alipay. This resulted in me being unable to process the page jump for successful payment. One method that comes to mind is ajax polling, but I feel that if the user never scans the code or never pays, the polling will continue to send requests, which is not good. Is there a better way to handle this?
ajax long polling, websocket