I want to get the transaction type from the Payment Object for a single order, whether the transaction was made through cash or by card. So far I came across payment.hasCashTendered() and payment.hasCardTransaction() to get the type of transaction. Also, I saw payment.getTender() which has an object label which also denotes that whether it was cash or credit card transaction. Is this the way one identifies the difference in cash or credit card transaction? Or there are some other ways to get the, because I need to display the cash sale or credit card purchase information like it is shown in the Orders app.
Please advice.