0

I am creating a custom payment plugin for Magento 2.2.2 For the plugin I need to add the payment icons and some other images.

How can I add images for my custom payment plugin?

I tried all the steps mentioned in Magento 2 : How to Add Image to Payment Method in Checkout but after following these steps I'm getting the following error

Failed to load the "_/js/view/payment/method-renderer/" component.

Anyone has a solution for this? Any help will be appreciated.

0

Got the solution from How to specify skin image path in Knockout HTML template?

require.toUrl('')+'/images/icon.png';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.