fix sql gateway payment