Five Indian gateways, all automatic.
UPI Gateway, Paytm QR, PhonePe, BharatPe and Razorpay add the balance when the gateway confirms the payment, not when the customer says they paid. You connect your own merchant account, so the money settles to you.
How payment methods are set up