TDBF Posted September 10, 2022 Share Posted September 10, 2022 Hi Guys, Not sure if I should log this as a bug or a feature request, however you can move it to the feature requests if you do not feel this is a bug/issue. Long story short, I had an issue which required me to install a older backup of my live site on a localhost (No point in going into the reason why as that's not the issue). Earlier today I received an email from one of my members stating that I had charged him twice today for a subscription. After checking his details, it then occurred to me that the invoices actually came from my backup site and payments went from bank accounts into Stripe. Lets just say this has caused me a massive headache. My question to you guys , is there any way you could prevent invoices or payments from happening while on localhost in future? I would not want some other poor sod having to go through this in the future. Kind Regards, Link to comment Share on other sites More sharing options...
Solution Richard Arch Posted September 11, 2022 Solution Share Posted September 11, 2022 You need to change your payment options to their test/sandbox option or delete them. Also worth a searching for NEXUS_TEST_GATEWAYS and EMAIL_DEBUG_PATH for more information. Here is a start. SeNioR- 1 Link to comment Share on other sites More sharing options...
TDBF Posted September 11, 2022 Author Share Posted September 11, 2022 1 hour ago, Richard Arch said: You need to change your payment options to their test/sandbox option or delete them. Also worth a searching for NEXUS_TEST_GATEWAYS and EMAIL_DEBUG_PATH for more information. Here is a start. I appreciate your reply, I found this out afterwards after the damage had been done. If the default behaviour was to sandbox the gateway and payments on localhost, this would have prevented this issue from happening. Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 11, 2022 Share Posted September 11, 2022 (edited) 6 minutes ago, TDBF said: If the default behaviour was to sandbox the gateway and payments on localhost, this would have prevented this issue from happening. People who host themselves (own server, etc. and there are a lot of them out there) generally use “localhost”. The constant is there for this matter, since early days of IPS4/Commerce, if I remember. You didn’t know. Probably best way was to ask before. Edited September 11, 2022 by Adriano Faria Link to comment Share on other sites More sharing options...
TDBF Posted September 11, 2022 Author Share Posted September 11, 2022 (edited) 18 minutes ago, Adriano Faria said: People who host themselves (own server, etc. and there are a lot of them out there) generally use “localhost”. The constant is there for this matter, since early days of IPS4/Commerce, if I remember. You didn’t know. Probably best way was to ask before. With all due respect, I wasn't having a go at anyone so I'm not sure why the hostility was required? I didn't know and I found out afterwards, when it was too late. When many of my members had been charged a subscription fees amounting in a lot of money being taken out of other people's accounts. This causes trust issues with people, and sometimes you cannot get that trust back. I can live with emails being sent out, but when it comes to other peoples money, that is a different story. All I was asking if the default behaviour could be changed, so that others might not have to go through the same when they don't know about these CONSTANTS. Edited September 11, 2022 by TDBF Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 11, 2022 Share Posted September 11, 2022 Not sure where you saw hostility in my post. I was explaining why they can’t do what you suggested in “localhost”. Fact is fact. There is a way to avoid that; you didn’t know. You learned something new. Link to comment Share on other sites More sharing options...
Recommended Posts