I am trying to build an app that renders a Wechat QR code and it will be scanned by a WeChat mobile app to proceed the payment.. Authentication, securities and validations are implemented on the app of course so not everybody can do the scan. But I want really want to achieve is like once the QR code is scanned, the tab with the QR code will automatically be closed or at least trigger something in the javascript. Is it possible?
Take Note:
The QR Code is a rendered image that came from an API return
This is a classic problem in 3rd payment integration. I guess it is WeChat Payment in your case.
The logic is:
notify_url
), which belong to your server.notify_url
.For how to push information from server to client, there are various ways:
setInterval