Do you use or administer OpenEMR? Take the General Satisfaction Survey to help improve the product

Automatic change status from payment screen

Hello there,
I want to develop functionality like, When doctor has seen patient & completed his checkup then it will needs to automatically change the status of current encounter after completion of payment. Currently I am using OpeneEMR-5.0.2 version & in that I have to go back to either Flow Board page or Patient summary page to change status, which is very long process. If anyone has idea on how to change status of current encounter from payment screen then please share your thoughts.
Thanks in advance!!!