In the default Magento 2 transactional email, the payment info is loaded using {{var payment_html | raw}}
.
We want to load this paymenthtml also in a phtml block, but how can we achieve this?
Already tried this but sadly that does not show any info:
<?php $order = $this->getData('order');
echo $block->getPaymentHtml($$order); ?>