I have a payment method that needs to load a
<script src="blahblah"....
I have it setup as
<script class="cm-ajax-force" data-no-defer src="blahblah"...
I have this inside of a div that is loaded when a payment processor is selected (other than the default).
However, the script tag is never loaded unless the page is refreshed when the payment method is selected.
The core is removing this tag and I need to know how to have it NOT do so.
I had hoped the combination of class="cm-ajax-force" and data-no-defer would have had cs-cart leave this alone.
Is there an attribute or micro-class I can use to have it left alone?
I'd just load it at the top except that I need to look at the processor_params to see if it's production or sandbox mode to load the appropriate script. src.
Any help is greatly appreciated. With scripts, there's so much that goes on behind the scenes, it's hard to keep track of.