I am building a new payment method. I'm in the process of adding the
So I have managed to add a script to the header of the checkout page.
<?xml version="1.0"?> <layout> <checkout_onepage_index> <reference name="head"> <action method="addJs"> <script>foo/bar.js</script> </action> </reference> </checkout_onepage_index> </layout>
However in my case,
One dirty solution is to addJs together with the content, such that the script is executed together. This method however give me a problem that the block
checkout.payment.methods does not have the method
addJs. If we're to use this approach, what should I do to be able to
Alternatively, I keep the script at