Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jeffrey Roberts Posted April 25, 2019 Posted April 25, 2019 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?
Ryan Ashbrook Posted April 25, 2019 Posted April 25, 2019 Add this to your constants.php: define( 'EMAIL_DEBUG_PATH', '/path/to/uploads' ); That will prevent emails from being sent out.
SJ77 Posted April 25, 2019 Posted April 25, 2019 4 minutes ago, Ryan Ashbrook said: 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?
Jeffrey Roberts Posted April 25, 2019 Author Posted April 25, 2019 10 minutes ago, Ryan Ashbrook said: Add this to your constants.php: define( 'EMAIL_DEBUG_PATH', '/path/to/uploads' ); That will prevent emails from being sent out. Thank you!
bfarber Posted April 26, 2019 Posted April 26, 2019 17 hours ago, SJ77 said: 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,
SJ77 Posted April 26, 2019 Posted April 26, 2019 13 minutes ago, bfarber said: 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?
bfarber Posted April 26, 2019 Posted April 26, 2019 constants.php <?php define( 'NEXUS_TEST_GATEWAYS', true ); SJ77 1
SJ77 Posted December 28, 2019 Posted December 28, 2019 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?
Mark Posted December 28, 2019 Posted December 28, 2019 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. Sonya* 1
Sonya* Posted December 28, 2019 Posted December 28, 2019 12 minutes ago, Mark said: 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. Mark H 1
SJ77 Posted December 28, 2019 Posted December 28, 2019 2 hours ago, Mark said: 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?
Mark Posted December 29, 2019 Posted December 29, 2019 10 hours ago, SJ77 said: 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. SJ77 1
Meddysong Posted August 3, 2020 Posted August 3, 2020 On 12/29/2019 at 3:37 AM, Mark said: 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.
CoffeeCake Posted August 10, 2020 Posted August 10, 2020 On 12/28/2019 at 9:37 PM, Mark said: 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. Meddysong 1
Recommended Posts