I created an action that is performed after the user’s payment is complete and it’s working fine. But in a situation where my client exits his browser right after payment this action will not be performed. That is a problem because the action creates an API call with a hotel reservation. How can I ensure that the action is executed reliably, even if the user closes their browser immediately after making the payment?
I was thinking about creating a simple server-based app, which sends a call to WooCommerce API to get new orders but I guess there is a simpler way.