Suppose I have two pages: 1) payment page, 2) payment successful page. User can a) finish payment on payment page or b) scan the QR Code on this page then finish payment through the app in his Smart Phone. After the payment I want to navigate user from page 1) to page 2) which is payment successful page.
My question is how can I accomplish this under situation b)? One possible approach I can think of is that I put an timer on page 1) and check the order status through ajax call every few seconds. Navigate to page 2) once the payment is done. Is there any other better approach? Can the back end drive the navigation instead of checking status from front end? Is there any framework/project under Spring I can use to accomplish this?
Aucun commentaire:
Enregistrer un commentaire