Jump to content

Featured Replies

Posted

Do I have to worry about 'tasks' running on my -TESTINSTALL site or will users receive duplicate notices and digests etc... ???

If so, how do I disable some non-essential tasks?

Add this to your constants.php:

define( 'EMAIL_DEBUG_PATH', '/path/to/uploads' );

That will prevent emails from being sent out.

 

Add this to your constants.php:


define( 'EMAIL_DEBUG_PATH', '/path/to/uploads' );

That will prevent emails from being sent out.

will it also prevent commerce from trying to collect renewals?

  • Author
 

Add this to your constants.php:


define( 'EMAIL_DEBUG_PATH', '/path/to/uploads' );

That will prevent emails from being sent out.

Thank you!

 

will it also prevent commerce from trying to collect renewals?

No, but you can set NEXUS_TEST_GATEWAYS to true for that.

				// Enable test/sandbox mode for Commerce payment gateways?
				// Sets all payment gateways into test/sandbox mode and makes a generic "Test Gateway"
				// which just acts as if a payment was successful available. Is used in development
				// so they can be tested without actually taking any money.
				'NEXUS_TEST_GATEWAYS' => FALSE,

 

 

No, but you can set NEXUS_TEST_GATEWAYS to true for that.


				// Enable test/sandbox mode for Commerce payment gateways?
				// Sets all payment gateways into test/sandbox mode and makes a generic "Test Gateway"
				// which just acts as if a payment was successful available. Is used in development
				// so they can be tested without actually taking any money.
				'NEXUS_TEST_GATEWAYS' => FALSE,

 

This is desperately needed

Can you explain a little bit more what I need to put and where?

 

constants.php

 

<?php

define( 'NEXUS_TEST_GATEWAYS', true );

 

  • 8 months later...

Hi, These are great things to do when working with a TEST INSTALL. My question is are there others? I thought there was something about using different cookies?

Just to note on the test gateways one: some providers (off the top of my head, I think Stripe is the only one) don't use that constant but give you different keys for test/live environments.

Those two (emails and gateways) are the big ones, but there are probably quite a few others. For example, every now and again we get people who have managed to block themselves in our Spam Defense service by registering several accounts on a test site. Really you should avoid using any live data (like real people's emails) and disable all integrations with external sites/services on a test install.

 

every now and again we get people who have managed to block themselves in our Spam Defense service by registering several accounts on a test site.

red panda door GIF

:biggrin:

 

Just to note on the test gateways one: some providers (off the top of my head, I think Stripe is the only one) don't use that constant but give you different keys for test/live environments.

 

So to be clear, even with this:

define( 'NEXUS_TEST_GATEWAYS', true );

, Stripe will still work and process a real purchase?

 

So to be clear, even with this:


define( 'NEXUS_TEST_GATEWAYS', true );

, Stripe will still work and process a real purchase?

Yes. To put Stripe into test mode you need to use the test mode API keys from your Stripe account.

  • 7 months later...
 

Yes. To put Stripe into test mode you need to use the test mode API keys from your Stripe account.

Is it enough to simply remove Stripe as a payment method, Mark? I'm asking because our Stripe account is tied to another colleague's phone for 2FA (she's administration and finance, so this is her area, whereas development etc falls to me), so now that I'm trying to log in at 23:10, having just become aware that people are being charged referrals from our test installation, I can't access Stripe to get the alternative keys.

 

Yes. To put Stripe into test mode you need to use the test mode API keys from your Stripe account.

This just got us and we accidentally charged a customer twice with a copy of our production database. It would be nice to add an additional setting for Stripe configuration to enter in test API keys, so that this flag actually works.

Recently Browsing 0

  • No registered users viewing this page.