question

Rohit Bhardwaj avatar image
Rohit Bhardwaj asked Rohit Bhardwaj commented

Cash Or Card Transaction

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.

Payments
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rohit Bhardwaj avatar image Rohit Bhardwaj commented ·

Hello? Can anyone help me with my doubt?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community