After customer create order with Authorize.net, the info in Payment Information in admin view order says "Credit Card Direct Post (Authorize.net) The order was placed using USD.".
How can I add type of card and last 4 digits to this block also?
Admin – Add Last 4 Digits and Card Type to Payment Information in Magento Order View
adminauthorize.netmagento-2.0.7orderspayment-methods
Best Answer
I created custom extension to achieve this
etc/di.xml
Model\Directpost.php
view/adminhtml/layout/sales_order_view.xml
view/adminhtml/templates/order/view/info/authorizenet_additional.phtml
Block/Payment.php
So I found that last digits was stored in db already, and for saving card type I needed to extend Directpost model a little. And then just retrieve all required data from order payment model