digital-pros / commerce-authorize

Authorize.net - Craft Commerce 2 Plugin
Other
3 stars 9 forks source link

Add utility method to check whether developer mode is enabled #50

Closed johnnynotsolucky closed 2 months ago

johnnynotsolucky commented 2 months ago

I had a few instances where the developerMode flag wasn't always being parsed correctly because it was an environment variable.

This PR adds a utility method to parse the developerMode flag as a boolean value in the Gateway class.

If this is accepted, would it be possible to apply this change to the Commerce 4 version of the plugin? The site we're using the plugin on is a Commerce 4 site still.

benlobach commented 2 months ago

Thanks, @johnnynotsolucky! We have rolled out 4.0.8 and 5.0.1 with this fix. Appreciate you!