Create gateway.php

Gateway class