Hello,
I have custom payment module for frontend. I want to enable this this module for backend also.
I used below code in observer(for event name="payment_method_is_active") to enable method:
if($paymentMethodCode == 'payment_methodCode'){
if($this->state->getAreaCode()=="adminhtml"){
$checkResult = $observer->getEvent()->getResult();
$checkResult->setData('is_available', true);
}
}
But only radio button and label displaying correct. templates are showing for default payment method.
templates are available in below path: app/code/vendor/paymentmodule/view/frontend/web/template/payment/paymentmethod.html
Can anyone suggest me what need to do ?
Thank you in adavance.