Created a CashPaymentDemo and improved API error handling