Convert Dummy payment processor to use doPayment function