Unable to show a page using published REST Service microflow

0
Hi everyone, I have implemented a published REST service that handles a callback URL from a third-party application once the payment process is completed. While the callback URL is functioning correctly, I am facing an issue with redirecting the user to a "Thank You" page with a success message after the payment. I tried using the "Show Page" activity in a microflow, but it’s not redirecting the page as expected. Additionally, I attempted to open the redirect in a new tab using a custom Java action, which works locally, but it doesn't work in the environments. Could anyone suggest a solution or approach to properly redirect the user to a new page after the payment process is complete. Thanks in advance!
asked
1 answers
0

Hi Poojitha,

 

Depending on the features of payment provider you should have two processes happening after the user completes the payment:

  • a callback (to the published REST service) containing the payment status. This is for processing on the server and does no longer involve the user (browser/client) as it asynchronous between the Payment provider and the Mendix Server.
  • a return/redirect URL which you should be able to specify when initializing the payment process with the payment provider, which will redirect the user to a predefined or passed-in URL. Based on this redirect URL the Payment Provider will redirect the browser of the user back to your application, this is where you can define your own page/microflow/deeplink url

So you need to make sure that you handle both processes, and show the Thank you page based on the redirect URL

answered