how to make a payment gateway