Install once.
Keep repeat orders on schedule.
Subscription Orders for WooCommerce · PayFast + Stitch · commercial package v0.4.0
Using your plugin after installation
Read the How to use Subscription Orders guide for product rules, frequencies, discounts, branding, customer controls, basket amendments, payment recovery and procurement.
1. Get your ZIP and activation key
- Sign in at heygeorge.co.za/plugins/.
- Open My account → My plugins. Paid access appears after PayFast confirms your payment, not merely when the browser returns.
- Click Download plugin to save
hey-george-subscriptions-0.4.0.zip. - Open Show key and copy your activation key. It covers one production website. Keep the key private.
The same plugin ZIP is delivered to purchasers. Your personal activation key stays in your account; it is not bundled in the ZIP or sent as an email attachment.
You may extract a copy of the ZIP to read this guide. Upload the original, complete plugin ZIP into WordPress.
2. Install and activate on WordPress
Before starting: a public HTTPS WordPress website, WooCommerce active, WordPress 6.5+, PHP 8.1+ with OpenSSL and mbstring, ZAR currency and classic WooCommerce Cart/Checkout pages. Subscription order totals must be at least R5.
- Back up your website and test on staging first.
- Go to Plugins → Add New Plugin → Upload Plugin.
- Choose the ZIP, click Install Now, then Activate Plugin.
- Go to WooCommerce → Hey George Subscriptions → License.
- Paste your Hey George activation key and click Activate license. Confirm the website and paid access shown.
- Use
[woocommerce_cart]on your Cart page and[woocommerce_checkout]on your Checkout page. This release does not support WooCommerce Blocks checkout.
WooCommerce is required; a paid WooCommerce Subscriptions extension is not. Official PayFast or Stitch gateway plugins are optional for ordinary one-off orders. This plugin provides its own subscription payment methods and settings.
3. Configure payments and subscription products
- Open PayFast settings and/or Stitch settings. Begin in sandbox mode.
- PayFast: enter the matching Merchant ID, Merchant Key and security passphrase. Recurring API use needs the security passphrase in both sandbox and live modes.
- Stitch: use an Express Client ID and Client Secret with recurring-consent access. Register the exact redirect and webhook URLs shown by the plugin. Add the webhook's Svix signing secret.
- In WooCommerce → Settings → Payments, enable the subscription methods you want customers to choose. Both can be enabled; one provider is chosen per subscription checkout.
- Open Categories or Products and set eligible items, frequencies and optional discounts. Product rules override category rules; products are not subscribed globally by default.
- Use Product page branding to set your label, image, colours and information popup.
Allow the public HTTPS payment notification endpoints through maintenance, login, caching and anti-bot protection. A return page alone does not confirm a payment.
When switching to live payments
Complete sandbox acceptance tests first. Use your approved live provider credentials and live modes. Ask your website administrator to back up and edit wp-config.php, adding this once before its “stop editing” line:
define('HGSO_ALLOW_LIVE_PAYMENTS', true);This is a live-payment configuration gate, separate from the scheduler below. Never add sandbox credentials to live settings. Further provider-specific details are in INSTALLATION.md.
4. Keep your subscription orders on schedule
Choose the simplest route below. If your host already runs WordPress scheduled tasks every minute, no extra job is needed. A busy website can also use WordPress's built-in visitor-triggered scheduler if it is enabled and working, and visits reach WordPress often enough for the delay you accept. The expandable visitor guide explains what that means.
Option 1 — ask your hosting provider
Add your website address to the message below, then copy and send it to your hosting provider. They can handle the setup for you.
You can edit this message before copying it, or select and copy it yourself. It is also included in HOSTING-SCHEDULER.txt inside your plugin download.
Can I skip this and rely on website visitors?
Yes, an extra hosting job may be unnecessary if built-in WP-Cron is enabled and working, qualifying page requests keep reaching WordPress, and you accept waiting for the next such request after an order becomes due. If your host already provides a working scheduler, keep that existing setup.
Think in terms of the longest gap between qualifying visits, including overnight, rather than total visitors per day. For checks roughly every minute using traffic alone, requests would need to reach WordPress roughly every minute, day and night. This is a traffic target, not a guarantee of completion.
| Gap between qualifying visits | What can happen to a due order |
|---|---|
| About 1 minute, around the clock | Usually an opportunity to start due tasks about a minute later, plus queue and payment processing time. |
| About 5–15 minutes | A due task may wait about 5–15 minutes for the next request, then still needs processing time. |
| Once a day, or no visits overnight | A due task may wait hours, potentially until the next day. Daily or weekly owner visits do not keep minute-based renewals timely. |
Not every visit counts. Fully cached pages served without running WordPress may not trigger WP-Cron. Leaving a browser tab open does not by itself provide continuing visits. If WP-Cron is disabled or blocked, traffic alone will not fix it. Your host can confirm how your site works.
For subscription stores, use Option 1 if there are quiet periods or if you need consistent unattended processing. A scheduler removes the wait for a visitor; server downtime, queues and payment-provider failures can still delay completion.
Option 2 — add it yourself in your hosting control panel
- Open your hosting panel's Cron Jobs / Scheduled Tasks section.
- First check for an existing job for this website. Do not add a duplicate.
- Choose every minute, or enter
*in each of the five time fields. Use the website's hosting user. - Paste the command below in Command. Replace
YOUR-DOMAINwith your HTTPS website and include its WordPress subdirectory, if any. Confirm the curl path with your host.
/usr/bin/curl --fail --silent --show-error --max-time 50 'https://YOUR-DOMAIN/wp-cron.php?doing_wp_cron' >/dev/null 2>&1
Enter only the command in the Command field, without the five time asterisks. If site protection blocks the request, ask your host to use the local PHP alternative.
Option 3 — full Linux crontab command
For an administrator using a Linux crontab. Replace the website address and confirm the curl path. Run as the website's hosting user and avoid duplicate jobs.
* * * * * /usr/bin/curl --fail --silent --show-error --max-time 50 'https://YOUR-DOMAIN/wp-cron.php?doing_wp_cron' >/dev/null 2>&1
Option 4 — local PHP alternative for your hosting provider
Use this when an HTTPS request is unsuitable or blocked. The host must replace both paths with the site's compatible PHP executable and absolute WordPress path.
* * * * * /PATH/TO/WEBSITE-PHP /ABSOLUTE/PATH/TO/WORDPRESS/wp-cron.php >/dev/null 2>&1
Run as the website's hosting user. Do not paste these placeholder paths unchanged. Do not disable TLS verification to make the HTTP alternative work.
After setup — verify it works before disabling visitor cron
Follow the unattended sandbox renewal test below. A blank wp-cron.php response alone does not prove orders were processed.
Only after confirming the replacement job works, your administrator may back up wp-config.php and add this once before its “stop editing” line:
define('DISABLE_WP_CRON', true);
Keep visitor cron enabled if there is no verified replacement. Monitor failed jobs and WooCommerce scheduled actions. Adding code to a page, theme or plugin cannot wake an idle website by itself.
5. Confirm unattended renewal before going live
- Complete a sandbox subscription checkout and confirm the WooCommerce order is paid via a verified provider notification.
- Open the active sandbox subscription and choose Schedule sandbox renewal in 2 minutes.
- Do not visit the storefront, click a renewal button or manually run cron during the waiting period.
- After at least three minutes, check that a new renewal order exists and the sandbox payment was confirmed. Check the scheduled actions and notification logs for failures. The order/payment timestamps and hosting cron logs must show it ran before your return to WordPress; that return visit could otherwise wake a delayed visitor-triggered job.
- If it did not run, ask your host to inspect the scheduled task, PHP/curl paths and exit result. A blank
wp-cron.phpresponse alone does not prove the renewal was processed. - Verify the store's own transactional emails reach the inbox, then perform a separately authorised controlled live payment/renewal before launch.
Do not schedule the same store orders separately inside PayFast or Stitch. This plugin schedules the store's renewals; creating another provider schedule can cause duplicate billing.
6. Downloads, support and updates
Return to your Hey George account to download the supplied release, copy your key, review connected websites or cancel future Hey George licence renewals. A confirmed cancellation keeps already paid access until its expiry; it does not refund an earlier payment.
Support and product updates are included while your Hey George plan is active. This release supplies updates through the account download; do not assume WordPress will offer an automatic in-dashboard update until an update feed is provided.
Existing store-customer renewals and subscription management continue if your Hey George plan expires. New subscription purchases and new licence activations require paid access. Your WooCommerce customers' subscriptions are separate from your Hey George software subscription.
Support: [email protected]. Give your plugin version, WordPress/WooCommerce versions and a redacted error description. Do not email card details, merchant secrets or your activation key.