On CC and iDEAL payment show card and bank issuer in sales order view
seansan opened this issue · 3 comments
seansan commented
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; ?>
seansan commented
seansan commented
Same may be possible for Ideal and bank name
Frank-Magmodules commented