- Issue created by @yusufhm
- 🇦🇺Australia yusufhm NSW, Australia
I've created a minimal working patch for now, which adds a Mode setting to the Square settings form.
I think this could be improved by either having a single set of credentials and using Mode to determine which endpoint to use, or having two sets of credentials, one each for Sandbox & Production. For the first option however, the logic for creating a Square Payment Gateway would then have to be updated as well. OTOH for the second option, we'll have to work on whether all fields should be optional/required, and we would also need to work out how to auth with the different endpoints (probably have a separate button for each mode).
I am not sure which one is right for now, since I've just started using Square and I only needed to test the Sandbox locally for now and the patch I made just worked. Happy to look a bit more into it once I have more time and if other people have any feedback.