Module was ignoring setting for gateway environment and hardcoded to production