1
I am creating a page that has a payment module, but when a user makes a payment right after the transaction is approved he receives an email telling him that his transaction has been accepted or not, but in some cases the transaction takes a while to be processed, how do I get the system to check the payment status and send an email to the user even though they are not on the page.
You can create a table by registering users whose payment is pending, and then create a script to scroll through that table every X time by scheduling the task in Cronjob
– Leo Letto
@Leoletto researched about Cron Jobs and I was left with a question, this feature is only available for Windows or can I use on Linux servers?
– Bruno Richart
Actually it is for Linux '-', you are editing via cPanel or manually on linux?
– Leo Letto
@Leoletto Actually I do not have access to the dashboard of this hosting, this can only be done through the dashboard or it is possible to do through php code?
– Bruno Richart
To schedule tasks you need access to the dashboard, or the Linux command line
– Leo Letto
@Leoletto was clear, thank you very much for your help.
– Bruno Richart
If you do not mind, there are some services that do POST programmed to a specified page, as you have no dashboard access, it is better to use a 3rd party service
– Leo Letto
Take a look, it might meet your needs https://uptimerobot.com/
– Leo Letto
You can set up a webservice and call it to run every 5 minutes, but it would overload the server (I think), the right thing would be running by the cron of Cpanel or SRV Linux... but the idea is just this, in parts, include would solve the problem.
– Sr. André Baill