Fix ajax for when using ajaxified payment gateways