Plugin To Disable Stripe & Other Payments on Staging Site?

78 views
Skip to first unread message

Toby Cryns

unread,
Aug 6, 2018, 9:55:10 AM8/6/18
to Minneapolis St. Paul WordPress User Group
Good morning, MSP friends!

There's a sweet plugin to disable emails on staging sites: https://wordpress.org/plugins/disable-emails/

Is there a similar plugin to disable Stripe, Paypal, etc. on staging sites?

Thanks,
Toby

Nick Ciske

unread,
Aug 6, 2018, 10:02:44 AM8/6/18
to Mpls-Stpaul-Wordpress
Email Is easily disabled as all WP email runs through a single hook. 

Stripe and PayPal are all individual addons from many vendors so... good luck. I don’t know of one that exists or that one would ever exist unless WP provides some kind of universal “payment processing” hooks into core... and everyone adopts them. Which I would not hold my breath waiting for...

If you use particular addons and want to force them into test mode you could add some code to wp config that only fires in the staging site to set test mode (and likewise for production and live mode). 

_______________________ 
 Nick Ciske 
CTO / Web Engineer 
@nciske 


--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To post to this group, send email to mpls-stpau...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpls-stpaul-wordpress.
For more options, visit https://groups.google.com/d/optout.

Toby Cryns

unread,
Aug 6, 2018, 10:29:28 AM8/6/18
to Minneapolis St. Paul WordPress User Group
Nick,

Thank you - very informative.

A million-dollar opportunity for some enterprising young person, perhaps: 
Build a plugin that disables WooCommerce payments for Stripe & Paypal so it's not such a headache on staging sites.  

I'll take 50% of all proceeds, thank you.  ;)


If you use particular addons and want to force them into test mode you could add some code to wp config that only fires in the staging site to set test mode (and likewise for production and live mode). 

I use WP Engine + WooCommerce for most things.  
  1. Is there a wp-config constant for WooCommerce payments (or something similar)?
  2. What is everyone's workflow for disabling/testing payments in staging using WooCommerce + Stripe?


Thanks, y'all!

Toby



On Monday, August 6, 2018 at 9:02:44 AM UTC-5, Nick Ciske wrote:
Email Is easily disabled as all WP email runs through a single hook. 

Stripe and PayPal are all individual addons from many vendors so... good luck. I don’t know of one that exists or that one would ever exist unless WP provides some kind of universal “payment processing” hooks into core... and everyone adopts them. Which I would not hold my breath waiting for...

If you use particular addons and want to force them into test mode you could add some code to wp config that only fires in the staging site to set test mode (and likewise for production and live mode). 

_______________________ 
 Nick Ciske 
CTO / Web Engineer 
@nciske 
On Aug 6, 2018 at 8:55 AM, <Toby Cryns> wrote:

Good morning, MSP friends!

There's a sweet plugin to disable emails on staging sites: https://wordpress.org/plugins/disable-emails/

Is there a similar plugin to disable Stripe, Paypal, etc. on staging sites?

Thanks,
Toby

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-wordpress+unsub...@googlegroups.com.
To post to this group, send email to mpls-stpaul-wordpress@googlegroups.com.

Eric Celeste

unread,
Aug 6, 2018, 10:36:32 AM8/6/18
to mpls-stpau...@googlegroups.com
Would this help?


I don’t use Woo-Commerce, so I’m not really sure. On my Gravity Forms based payment sites I just turn off the PayPal feed and switch Stripe over to “testing” when I am on my development sites.

…Eric


To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To post to this group, send email to mpls-stpau...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To post to this group, send email to mpls-stpau...@googlegroups.com.

Toby C

unread,
Aug 6, 2018, 11:42:47 AM8/6/18
to Minneapolis St. Paul WordPress User Group
Eric,
Thanks -That is helpful for shops without recurring subscriptions. 

I had an issue recently when we re-activated an old subscription-based shop after a year in mothballs, and WooCommerce started pinging Stripe for all the subscriptions that were overdue - agh!

Toby

To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-wordpress+unsub...@googlegroups.com.
To post to this group, send email to mpls-stpaul-wordpress@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-wordpress+unsub...@googlegroups.com.
To post to this group, send email to mpls-stpaul-wordpress@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-wordpress+unsub...@googlegroups.com.
To post to this group, send email to mpls-stpaul-wordpress@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages