Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This can be done, but basically requires you to duplicate the Authorize module and change all the namespaces. This will take some fiddling, but start by copying the <code>app/code/core/Mage/Paygate</code> module to somewhere like <code>app/code/local/Yourcompany/Paygatecad</code> and proceed to rename the classes (<code>Mage_Paygate_Model_Authorizenet</code> becomes <code>Yourcompany_Paygatecad_Model_Authorizenet</code>, etc). Be careful of case-sensitive file and class names, I suggest you use all leading capital followed by lowercase. </p> <p>Create a <code>Yourcompany_Paygatecad.xml</code> module declaration in <code>app/etc/modules</code>, and duplicate the layout and template files in <code>adminhtml</code> and <code>frontend</code> to use your new module name. You'll also need to edit the <code>system.xml</code> and <code>config.xml</code> so that the config values don't conflict in namespace. <code>grep</code> is your friend. </p> <p>After all that, you should get a new Payment Method in the System>Config>Payment Methods that you can configure with your CAD details, and the blocks should render in the Checkout flow. </p> <p>As you've probably gathered from what I've said, there's a fair few changes to be made to avoid conflicts, and you'll need to test this <strong>really</strong> well. But it should work. I'm not aware of any alternative approach to achieve this... I've done this successfully when I've wanted two different set of options for another payment method and it worked, but that was for a community extension, not Magento core, not that it should really matter where you're copying it from. </p> <p>--------EDIT-----</p> <p>Ideally, what you should do is copy and modify only the <code>etc</code> and <code>sql</code> files. That way the original <code>Mage_Paygate</code> Models and controllers will still be used (gives you best protection for upgrades/patches) and you just update the config values to point to the CAD instance. I can't confirm whether this will work, but I would try that if at all possible. </p> <p>HTH, JD</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload