mundipagg/magento2

View on GitHub
view/adminhtml/templates/info/creditCard.phtml

Summary

Maintainability
Test Coverage
<?php /* @var \MundiPagg\MundiPagg\Block\Payment\Info\CreditCard $this */ ?>
<?php if ($this->getCcType()): ?>

    <?php
    /**
     * @var \Mundipagg\Core\Kernel\Aggregates\Transaction $lastTransaction
     */
    $lastTransaction =  $this->getTransactionInfo();
    ?>
    <span><?php echo __($this->getTitle()); ?></span>
    <br/>
    <br/>
    <span><b><?php echo __('Brand'); ?>: </b><?php echo $this->getCcBrand(); ?></span>
    <br/>
    <span><b><?php echo __('Number'); ?>: </b><?php echo $this->getCardLast4(); ?></span>
    <br/>
    <span><b><?php echo __('Installments'); ?>: </b><?php echo $this->getInstallments(); ?></span>
    <?php if (!empty($lastTransaction['authorized'])) {?>
        <br/>
        <span><b><?= __('NSU'); ?>: </b><?= $lastTransaction['authorized'] ?></span>
    <?php } ?>
    <br/>
    <?php if (!empty($lastTransaction['captured'])) {?>
        <span><b><?= __('NSU from capture'); ?>: </b><?= $lastTransaction['captured'] ?></span>
        <br/>
    <?php } ?>
    <?php if (!empty($lastTransaction['tid'])) {?>
        <span><b><?= __('TID'); ?>: </b><?= $lastTransaction['tid'] ?></span>
    <?php } ?>
<?php endif ?>