cancel
Showing results for 
Search instead for 
Did you mean: 

Running order report that includes credit card details for processing offline

Running order report that includes credit card details for processing offline

Hi All,

I have a bakery and as a side business run a small school lunch service where customers order with credit card (saved).  All payments are then processed offline at my shop, I want to run an summary order report that includes the Credit card details so I can print off and take to my store then process.  

The standard order export file includes all info except the credit card details.

At the moment I have to into each individual order on screen and manually collate onto a spreadsheet then print and use.

Was hoping someone has had to do this previously and advise.

thanks

jon.

1 REPLY 1

Re: Running order report that includes credit card details for processing offline

Hello @made999,

 

Default Magento didn't export payment data in order report. So you have to enhanced functionality for it or create export script for order. You will get payment data by below code

 

//Get Payment
$payment = $order->getPayment()

//Get card type
$payment->getData('cc_type')

//Get Payment Info
$payment->getMethodInstance()->getCode();
$payment->getMethodInstance()->getTitle();

//Get Credit Card info
$payment->getMethodInstance()->getCardsStorage()
$payment->getMethodInstance()->getCardsStorage()->getCards() //array()

Let me know if you have any issue.

 

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"