mollie/Magento

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

seansan opened this issue · 3 comments

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

getPaymentStatus(); ?>
<div class="mollie-method">
    <p>
        <?php if ($img = $this->getPaymentImage()): ?>
            <img src="<?= $img ?>"/>
        <?php endif; ?>
        <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>
        <?php if (($cardlabel = $this->getcardLabel())): ?>
            (<?php echo $this->escapeHtml($cardlabel) ?>)
        <?php endif; ?>

Before

image

After

image

Same may be possible for Ideal and bank name

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.