The rough estimate for developing a payment gateway from scratch is up to six months. The setup process for off-the-shelf products is around 3-4 weeks.