Update gateway urls
Fix callback (HTTP_POST_VARS may not be available as the compatibility code was being loaded afterwards)