Transactions in the Magento order system
I just read this topic about the Magento payment flow. It handles about the role of Payment Methods and invoices in Magento. I am curious now though what the exact role of Transact开发者_运维问答ions are within Magento. There does not seem to exist a tutorial or information about this on the internet I can find.
As far as I understand it, they can be open or closed and can have children (also transactions). I assume open transactions are not completed/paid yet and closed transactions are? Also my company bought a payment extension which does not make use of transactions. Is this acceptable or this is a missing functionality of the extension?
Questions I have:
- What is the general role of transactions in Magento?
- Why would you not want to use transactions for your payment method?
- What is the concept of transactions with children?
- Can transactions be used to manage multiple subpayments to an order with possibly different payment methods?
Thanks in advance.
Transaction are meant for reoccurring billing profiles and they don't have a general role in your flow and are only important if you need to implement partial payments or reoccurring payments
- they don't have a general role in your flow and are only important if you need to implement partial payments or reoccurring payments
- you don't need them if you have only one payment to capture
- you can define the payments more flexibly
- its up to implementation. Nothing really is defined here and you can choose freely how to use this. I doubt that you can use multiple payment methods within one order and this would need your own payment "proxy" extension that would control that
精彩评论