Once the order is placed for cod and you want to change the payment method, you can either cancel the order from the website if the order is not processed and after cancellation you can place a new prepaid order or you can ask for the UPI option to the courier person.