How can I go back a few pages on JAVA or to form?

Hi, The native app uses the pay gate payment integration and now it navigates to a form where you make the payment. I want a way to go back a few pages or close the pay gate form after the payment so that I can confirm it on the app. If let's say this was on html or javascript. I would be looking for something like this: javascript:history.back(-2); Thanks.
1 answers

From a Java action, you can open a form with the addOpenFormFeedback method. It would be even better to execute a microflow from Java instead (assuming that your payment is handled in Java), so that you can manage your app logic in a microflow.