Title: Subscription &#8211; Automatic Payment
Last modified: May 17, 2017

---

# Subscription – Automatic Payment

 *  [selfbuild123](https://wordpress.org/support/users/selfbuild123/)
 * (@selfbuild123)
 * [9 years ago](https://wordpress.org/support/topic/subscription-automatic-payment/)
 * When a customer buys a subscription, I would like it to be recurring automatically
   every 3 months but after conducting a test it defaulted to Manual Renewal which
   is not even enabled via settings/subscriptions.
 * We are using Stripe as our payment gateway.
 * Our site is currently live and there is no other site but this one.
 * Also, on the Status report, Subscriptions Mode has a red ‘X’ for staging. I followed
   the instructions on how to remove it via support page and was prompted to choose
   either ‘Quit nagging me (but don’t enable automatic payments)’ or ‘Enable automatic
   payments’. I clicked on ‘Enable automatic payments’ and nothing happens. It refreshes
   to the same prompt again time and time again.
 * Please help.
 * Thanks
    Mylo

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [bryandouglashenry](https://wordpress.org/support/users/bryandouglashenry/)
 * (@bryandouglashenry)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9186960)
 * Hey Mylo
    I’ve got the same problem. Did you maybe find a solution?
 * Thanks,
    Bryan
 *  Thread Starter [selfbuild123](https://wordpress.org/support/users/selfbuild123/)
 * (@selfbuild123)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9187033)
 * Hi Bryan….I received this from Woo Commerce support and it seemed to have fixed
   the issue….
 * Subscriptions has indeed switched into the staging mode. As soon as Subscriptions
   detects the site URL has changed. This is to let the users create a test copy
   of the site for troubleshooting purposes without the risk of charging customers
   twice. Here is an article that explains the whole process:
 * [https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/](https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/)
 * Now if you’re using the same address already for a while and the subscriptions
   are still playing tricks, it’s possible that the site URL has been defined dynamically.
   We’ve seen cases where the following declaration added in wp-config.php file 
   resulted in problems like yours:
 * define(‘WP_HOME’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   
   define(‘WP_SITEURL’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   If your config file contains a section like this, I would strongly suggest to
   replace the dynamic address with a static one. Here is an example:
 * define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
    define(‘WP_SITEURL’, ‘[https://www.selfbuild.ie/&#8217](https://www.selfbuild.ie/&#8217););
   Once you do that, you can update the value of wc_subscriptions_siteurl on a secret
   options page. You can access it directly with this link:
 * When you’re there, please update the site address to the same one as in wp-config(
   in my example, [http://www.selfbuild.ie](http://www.selfbuild.ie), scroll to 
   the very bottom and save). This should prevent dynamic address changes and keep
   the subscription in live mode from that point.
 * It’s also possible that WordFence is doing the same thing. You can test this 
   by disabling WordFence and seeing if that helps.
 * I hope this helps. Please let us know if there is anything else we can help with!
 * Thank you,
    -  This reply was modified 8 years, 12 months ago by [selfbuild123](https://wordpress.org/support/users/selfbuild123/).
 *  Thread Starter [selfbuild123](https://wordpress.org/support/users/selfbuild123/)
 * (@selfbuild123)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9187045)
 * Received this from Woo Commerce support and it worked….basically there were 2
   sites. One live, One testing/staging. See below…
 * Subscriptions has indeed switched into the staging mode. As soon as Subscriptions
   detects the site URL has changed. This is to let the users create a test copy
   of the site for troubleshooting purposes without the risk of charging customers
   twice. Here is an article that explains the whole process:
 * [https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/](https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/)
 * Now if you’re using the same address already for a while and the subscriptions
   are still playing tricks, it’s possible that the site URL has been defined dynamically.
   We’ve seen cases where the following declaration added in wp-config.php file 
   resulted in problems like yours:
 * define(‘WP_HOME’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   
   define(‘WP_SITEURL’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   If your config file contains a section like this, I would strongly suggest to
   replace the dynamic address with a static one. Here is an example:
 * define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
    define(‘WP_SITEURL’, ‘[https://www.selfbuild.ie/&#8217](https://www.selfbuild.ie/&#8217););
   Once you do that, you can update the value of wc_subscriptions_siteurl on a secret
   options page. You can access it directly with this link:
 * [http://www.yoursite.com/wp-admin/options.php](http://www.yoursite.com/wp-admin/options.php)
 * When you’re there, please update the site address to the same one as in wp-config(
   in my example, [http://www.yoursite.com](http://www.yoursite.com), scroll to 
   the very bottom and save). This should prevent dynamic address changes and keep
   the subscription in live mode from that point.
 * I hope this helps.
    -  This reply was modified 8 years, 12 months ago by [selfbuild123](https://wordpress.org/support/users/selfbuild123/).
 *  Thread Starter [selfbuild123](https://wordpress.org/support/users/selfbuild123/)
 * (@selfbuild123)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9187053)
 * Received this from Woo Commerce support and it worked….basically there were 2
   sites. One live, One testing/staging. See below…
 * Subscriptions has indeed switched into the staging mode. As soon as Subscriptions
   detects the site URL has changed. This is to let the users create a test copy
   of the site for troubleshooting purposes without the risk of charging customers
   twice. Here is an article that explains the whole process:
 * [https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/](https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/)
 * Now if you’re using the same address already for a while and the subscriptions
   are still playing tricks, it’s possible that the site URL has been defined dynamically.
   We’ve seen cases where the following declaration added in wp-config.php file 
   resulted in problems like yours:
 * define(‘WP_HOME’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   
   define(‘WP_SITEURL’, ‘[https://&#8217](https://&#8217);. $_SERVER[‘SERVER_NAME’]);
   If your config file contains a section like this, I would strongly suggest to
   replace the dynamic address with a static one. Here is an example:
 * define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
    define(‘WP_SITEURL’, ‘[https://www.selfbuild.ie/&#8217](https://www.selfbuild.ie/&#8217););
   Once you do that, you can update the value of wc_subscriptions_siteurl on a secret
   options page. You can access it directly with this link:
 * [http://www.yoursite.com/wp-admin/options.php](http://www.yoursite.com/wp-admin/options.php)
 * When you’re there, please update the site address to the same one as in wp-config(
   in my example, [http://www.yoursite.com](http://www.yoursite.com), scroll to 
   the very bottom and save). This should prevent dynamic address changes and keep
   the subscription in live mode from that point.
 *  [bryandouglashenry](https://wordpress.org/support/users/bryandouglashenry/)
 * (@bryandouglashenry)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9187568)
 * Thanks – didn’t work for me.
 * My tech team will work on it tomorrow – with the help of the payment gateway 
   integrators.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Subscription – Automatic Payment’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [subscriptions](https://wordpress.org/support/topic-tag/subscriptions/)

 * 7 replies
 * 2 participants
 * Last reply from: [bryandouglashenry](https://wordpress.org/support/users/bryandouglashenry/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/subscription-automatic-payment/#post-9187568)
 * Status: not resolved