gateway code submit