moved getPaymentType from view into model logic