Q. What is the difference between payment method and payment classes (such as order_payment, quote_payment, etc.)? Payment model is the abstract of an instance payment method and it works with database. Payment model can be Mage_Sales_Model_Order_Payment or Mage_Sales_Model_Quote_Payment depending on checkout stage. And the database is stored corresponding with tables…
Q. What is the difference between “pay” and “capture” operations?
pay() – Register payment fact: update self totals from the invoice / Update totals…
capture() – Capture the payment online
* Requires an invoice. If there is no invoice specified, will automatically prepare an invoice for order
* Updates transactions hierarchy, if required
* Updates payment totals, updates order status and adds proper comments