You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.0 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * @var \Magento\Payment\Block\Info $block
  8. * @see \Magento\Payment\Block\Info
  9. */
  10. $specificInfo = $block->getSpecificInformation();
  11. $title = $block->escapeHtml($block->getMethod()->getTitle());
  12. ?>
  13. <dl class="payment-method">
  14. <dt class="title"><?= /* @noEscape */ $title ?></dt>
  15. <?php if ($specificInfo) : ?>
  16. <dd class="content">
  17. <table class="data table">
  18. <caption class="table-caption"><?= /* @noEscape */ $title ?></caption>
  19. <?php foreach ($specificInfo as $label => $value) : ?>
  20. <tr>
  21. <th scope="row"><?= $block->escapeHtml($label) ?></th>
  22. <td>
  23. <?= /* @noEscape */ nl2br($block->escapeHtml(implode("\n", $block->getValueAsArray($value, true)))) ?>
  24. </td>
  25. </tr>
  26. <?php endforeach; ?>
  27. </table>
  28. </dd>
  29. <?php endif;?>
  30. </dl>
  31. <?= $block->getChildHtml() ?>