search

Home  >  Q&A  >  body text

php - Payment asynchronous callback is successful, page jump problem

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?

为情所困为情所困2823 days ago883

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-27 17:45:58

    ajax long polling, websocket

    reply
    0
  • Cancelreply