I want to update user profile on my site with the latest orders , after they make a purchase on my site.
It needs a few seconds to retrieve as sometimes it needs multiple tries.
I call the API action repeatedly (with a Page flow) until latest data is received, but i want it to work even if user navigates from that page to another. How should i do that?
. Yes it’s for paddle and I’m using webhooks. I’m only querying my own database not paddle’s . I’m not using Server Connect, my database is separate and I’m using API Actions from App connect to interact with my database through my APIs. Now the issue is that sometimes it takes a few seconds for the webhook to update my database and then for my website to get the updated value from the database. My API action is written to keep trying but if the user navigates to another page the API actions, page flows , even app flows seem to stop running . I want it to continue running in the background.
Should i just call the app flow from page load of every page and using session variables have a logic that if there was a recent purchase and the updated purchases have not yet been received from my API / DB then try again. Is this the right way to do it or is there some kind of setting through which an App / Page flow can keep running in the backgroung even if the page is navigated away from ?