Query re cron & recurring payments
-
Your plugin has a very sensible check if the site appears to be a duplicate (presumably for staging or CDN). If it detects a duplicate, then you require the payment mode to be switched to test mode and back to avoid duplicate payments being triggered.
We have wp cron set to be run via a conventional cron. ie. in wp-config.php disable_wp_cron is set to true
So in fact there is no risk of duplicate payments.
Despite this, in order to get renewals to work we have to manually switch to test mode and back.
Is there a way around this? Is there a function we can use to do the switch in code or clear the duplicate site flag?
We found the test mode flag in the options table in the database, but fiddling directly with that – eg. inserting then removing – looks risky + we suspect that probably won’t work anyways.
Many thanks.
You must be logged in to reply to this topic.