cancel
Showing results for 
Search instead for 
Did you mean: 

Render image in payment template

Render image in payment template

Hi! I have created a payment gateway extension. Now I want to add the logo of the payment provider to the checkout option. In .phtml templates I use

echo $block->getViewFileUrl(...)

and it works. Unfortunately, the payment template is .html and I can't use any php code there.. I think I have to pass it somehow from the renderer method where the Component is prepared but don't know how. I've seen some examples of doing it with attaching the getViewFileUrl function to the object but again not sure how to do it. Any ideas are welcome! Thanks in advance!

 

Tags (2)