Commit 4e26bfaa authored by attilak's avatar attilak

Remove multibanco details rendering from the success.phtml

parent 56088897
...@@ -89,46 +89,4 @@ ...@@ -89,46 +89,4 @@
<?php endif; ?> <?php endif; ?>
</tbody> </tbody>
</table> </table>
<?php elseif (!empty($block->getMultibancoData())) : ?>
<?php
$multibancoData = $block->getMultibancoData();
?>
<h2><?php echo $block->escapeHtml(__('Pay using Multibanco')); ?></h2>
<p><?php echo $block->escapeHtml(__('Please pay with the provided Multibanco reference and entity before payment deadline in order to complete our payment')); ?></p>
<table>
<tbody>
<?php if (strcmp($multibancoData['paymentMethodType'], 'multibanco') === 0) : ?>
<tr>
<th><?php echo $block->escapeHtml(__('Entity')); ?></th>
<td><?php echo $multibancoData['entity'] ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['reference'])) : ?>
<tr>
<th><?php echo $block->escapeHtml(__('Reference')); ?></th>
<td><?php echo $multibancoData['reference'] ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['totalAmount'])) : ?>
<tr>
<th><?php echo $block->escapeHtml(__('Amount')); ?></th>
<td><?php echo $block->priceHelper->currency($multibancoData['totalAmount']['value']) //TODO: This value is showing as it comes from the API call and based on the currency the decimal point could be wrong until the Checkout Component is implemented ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['expiresAt'])) : ?>
<tr>
<th><?php echo $block->escapeHtml(__('Payment deadline')); ?></th>
<td><?php echo $multibancoData['expiresAt'] ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?> <?php endif; ?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment