Payment Workflow
PayTabs provides you with the backend packages that make the integrating with PayTabs payment gateway very easy by providing ready-made classes that handle the payment process.
This manual provides a step-by-step workflow for using the PayTabs package. To customize the UI of the hosted payment page, check this article.
In this manual, we will wake you through the payment workflow for Laravel PayTabs Page.
- Creating an object from the paypage class then calling the
create_pay_page()
method which generate aRedirectResponse
instance which sets the target Url using theredirect_url
parameter value from the PayTabs response payload. - The merchant should return this object to navigate/redirect the customers to this previous payment page link; in order to complete the payment.
- Once the payment is completed, PayTabs will redirect the customer back to the merchantβs website, to the return URL that the merchant specified in the
sendURLs()
method, and the payment basic results will be posted to that URL.