Skip to content

Commit a042993

Browse files
committed
Make it possible to generate sales PDF's using the API
1 parent cd1bcb6 commit a042993

File tree

1 file changed

+23
-0
lines changed
  • app/code/Magento/Payment/view/base/templates/info/pdf

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
// @codingStandardsIgnoreFile
8+
/**
9+
* @see \Magento\Payment\Block\Info
10+
* @var \Magento\Payment\Block\Info $block
11+
*/
12+
?>
13+
<?= $block->escapeHtml($block->getMethod()->getTitle()) ?>{{pdf_row_separator}}
14+
15+
<?php if ($specificInfo = $block->getSpecificInformation()):?>
16+
<?php foreach ($specificInfo as $label => $value):?>
17+
<?= $block->escapeHtml($label) ?>:
18+
<?= $block->escapeHtml(implode(' ', $block->getValueAsArray($value))) ?>
19+
{{pdf_row_separator}}
20+
<?php endforeach; ?>
21+
<?php endif;?>
22+
23+
<?= $block->escapeHtml(implode('{{pdf_row_separator}}', $block->getChildPdfAsArray())) ?>

0 commit comments

Comments
 (0)