PayTabs plugins make the integration with the PayTabs payment gateway very easy by providing a ready-made and easy-to-install plugin that enables you to be ready and go with a few steps, to get you up and running with your business.
This step is handled automatically by our plugin. In other words, NO further actions will be needed to be done from your side. By just using the configuration options and parameters that already have been clarified in the previous step "Step 2 - Configure the integration method", any performed order through your website/store, the plugin will automatically handle the order response sent from PayTabs and update the order status accordingly.
This article is dedicated to walking you through the business aspect of how PayTabs' plugin handles the response of the payment that you already initiated in the previous step (Step 3 - Initiating the payment).
Here's what happened behind the scenes once you have configured the status that the order will be marked with according to PayTabs' response on the payment that has been done related to this order (the Order Status configuration options):
Since the Drupal plugin is following our Hosted Payment Page mechanism in its integration, it relies on both ways of the return URL and the callback URL to be notified and update the order status.
It does so, to assure that order status will be always updated as the customer may never return to our Drupal website/store due to a browser issue or unexpected customer behavior such as closing the browser right after the payment without waiting for the payment page to redirect him back to the site.
In a conclusion, by relying on updating the order status according to either the return URL response or the callback URL response, the plugin will be always update the order status accordingly.