Schedule email sending after query transaction status

Asked

Viewed 31 times

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.

  • 2

    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

  • @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?

  • Actually it is for Linux '-', you are editing via cPanel or manually on linux?

  • @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?

  • To schedule tasks you need access to the dashboard, or the Linux command line

  • @Leoletto was clear, thank you very much for your help.

  • 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

  • Take a look, it might meet your needs https://uptimerobot.com/

  • 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.

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.