mollie / Magento

Mollie Payments for Magento 1.x
https://www.mollie.com/
BSD 2-Clause "Simplified" License
39 stars 30 forks source link

On CC and iDEAL payment show card and bank issuer in sales order view #176

Closed seansan closed 4 years ago

seansan commented 4 years ago

It is important to know which card the customer used, show this on order page

add method in block

/**
 * @return string
 */
public function getcardLabel()
{
    try {
        $details = json_decode($this->getInfo()->getAdditionalInformation('details'));
        if ($details->cardLabel) {
            return $details->cardLabel;
        }
    } catch (\Exception $e) {
        $this->mollieHelper->addTolog('error', $e->getMessage());
    }
}

Call method in phtml info block

<?php /**

seansan commented 4 years ago

Before

image

After

image

seansan commented 4 years ago

Same may be possible for Ideal and bank name

Frank-Magmodules commented 4 years ago

Hi @seansan , thank you for opening this issue. The feature request has been added in the v5.6.0, where the used Creditcard issuer is now shown in the back-end. We are closing this issue now but please feel free to reopen the issue if this still occurs.