Manually Trigger Payment Processing

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply


Hello everyone,

I’ve separated the checkout process into two steps; placing the order and paying for the order at a later date (once the seller has adding shipping costs)

I have the custom payment method created (extending Mage_Payment_Model_Method_Cc) attached to the adminhtml and working. But to keep it modular I would prefer to activate the payment processor on my Mage_Sales_Model_Order using the payment processor selected in the admin and not directly call my payment module.

I can’t seem to follow the code to find where Magento triggers the payment processing.

Can someone please point me to it, or is it a simple couple of line that goes something like:




The method

Just create the new empty object model, to load payment you need to do something like:
But I think it will be easier for you to find payment using order object (I suppose you have it):


QuartSoft - Professional Magento Development

`Reply Or Comment!
Please LogIn to Reply!