Code for Populating Invoice Number for Payment Gateway