This article is for owners of a Platform Edition. To get the recurring subscriptions of your clients, if you have created some monthly plans for example, you have to add an entry to your crontab.
A crontab is included in every server, and allows to execute some automatic tasks. You add an entry to the crontab and it executes the task when you have told him to do it. It can be a task to execute every 10am, every wednesday, etc.
In our case the crontab entry you have to create will launch the file that will check the subscriptions and update them.
Two ways to create your new crontab entry:
From the admin panel of your hosting
Search for your crontab manager. Add a new entry with these settings:
- Minute: 0
- Hour: 1
- Day of Month: *
- Month: *
- Day of Week: *
- (And in the Command field): wget http://www.domain.com/payment/paypal/checkrecurrences
Connect to your server using your SSH root access.
Enter: crontab -e
Press “i” to enable the insertion mode
enter: 0 1 * * * wget http://www.domain.com/payment/paypal/checkrecurrences -q -O “/dev/null” > /dev/null 2>&1
– the spaces between the entries “0 1 * * * wget” are tab spaces, and the one between “wget” and the url of your Siberian is a “normal” space.
– you will have to replace “www.mydomain.com” by the url of your Siberian
You are done!
Did You Find This Article Helpful?
No - 0 visitors found this post was not helpful