<?php$blockObj= $block->getLayout()->createBlock(‘JJ\Paymentinformation\Block\Main’);$data= $blockObj->getMyCustomMethod();?>
And which block u want call in that div
add <p class=”cash-amount”><?=$data[‘credit-limit’];?>
<?php$blockObj= $block->getLayout()->createBlock(‘JJ\Paymentinformation\Block\Main’);$data= $blockObj->getMyCustomMethod();?>
And which block u want call in that div
add <p class=”cash-amount”><?=$data[‘credit-limit’];?>