Payment transaction model Tracks transaction history, allows to build transactions hierarchy By default transactions are saved as closed.
Located in /Sales/Model/Order/Payment/Transaction.php (line 32)
Varien_Object | --Mage_Core_Model_Abstract | --Mage_Sales_Model_Order_Payment_Transaction
Child transactions, assoc array of transaction_id => instance
Event object prefix
Event object prefix
Whether transaction has children
Child transactions, assoc array of txn_id => instance
Filled only in case when all child transactions have txn_id Used for quicker search of child transactions using isset() as oposite to foreaching $_children
Whether to throw exceptions on different operations
Order instance
Order website id
Parent transaction instance
Payment instance. Required for most transaction writing and search operations
Whether to perform automatic actions on transactions, such as auto-closing and putting as a parent
Inherited from Mage_Core_Model_Abstract
Mage_Core_Model_Abstract::$_cacheTag
Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Check whether authorization in current hierarchy can be voided completely
Basically checks whether the authorization exists and it is not affected by a capture or void
Close this transaction
Close an authorization transaction This method can be invoked from any child transaction of the transaction to be closed Returns the authorization transaction on success. Otherwise false.
$dryRun = true prevents actual closing, it just allows to check whether this operation is possible
Close a capture transaction
Logic is similar to closeAuthorization(), but for a capture transaction
Getter for entire additional_information value or one of its element by key
Child transaction(s) getter
Will attempt to load them first Can be filtered by types and/or transaction_id Returns transaction object if transaction_id is specified, otherwise - array TODO: $recursive is not implemented
Order ID getter
Attempts to get ID from set order payment object, if any, or from data by key 'order_id'
Order Payment instance getter
Will attempt to load by payment_id if it is set in data
Retrieve order website id
Parent transaction getter May attempt to load it.
Retrieve transaction types
Getter/Setter of whether current transaction has a child transaction
Setter/Getter whether transaction is supposed to prevent exceptions on saving
Check whether this transaction is voided
Load self by specified transaction ID. Requires the valid payment object to be set
Additional information setter Updates data inside the 'additional_information' array Doesn't allow to set arrays
Set order instance for transaction depends on transaction behavior If $order equals to true, method isn't loading new order instance.
Payment instance setter
Parent transaction ID setter
Can set the transaction id as well
Transaction ID setter
Transaction type setter
Unsetter for entire additional_information value or one of its element by key
Check object after loading by by specified transaction ID
Check object before loading by by specified transaction ID
Verify data required for saving
Initialize resource model
Check whether this transaction is voided
TODO: implement that there should be only one void per authorization
Load child transactions
Check whether the payment object is set and it has order object or there is an order_id is set
$dryRun allows to not throw exception
Make sure this object is a valid transaction
TODO for more restriction we can check for data consistency
Check whether specified transaction ID is valid
Check whether specified or set transaction type is supported
Inherited From Mage_Core_Model_Abstract
Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Raw details key in additional info
Supported transaction types
Documentation generated on Fri, 11 Feb 2011 17:15:05 +0200 by phpDocumentor 1.4.3