Order payment information
Located in /Sales/Model/Order/Payment.php (line 30)
Varien_Object | --Mage_Core_Model_Abstract | --Mage_Payment_Model_Info | --Mage_Sales_Model_Order_Payment
Billing agreement instance that may be created during payment processing
Whether can void
Order model object
Transaction addditional information container
Transactions registry to spare resource calls
array(txn_id => sales/order_payment_transaction)
Inherited from Mage_Payment_Model_Info
Mage_Payment_Model_Info::$_additionalInformation
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
Accept online a payment that is in review state
Public acces to _addTransaction method
Public access to _authorize method
Check order payment capture action availability
Order cancellation hook for payment method instance
Adds void transaction if needed
Cancel a creditmemo: substract its totals from the payment
Cancel specified invoice: update self totals from it
Check order payment review availability
Check order payment void availability
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
TODO: eliminate logic duplication with registerCaptureNotification()
Lookup an authorization transaction using parent transaction id, if set
Get the billing agreement, if any
Lookup the transaction by id
Import details data of specified transaction
Register payment fact: update self totals from the invoice
Authorize or authorize and capture payment on gateway, if applicable This method is supposed to be called only when order is placed
Refund payment online or offline, depending on whether there is invoice set in the creditmemo instance Updates transactions hierarchy, if required Updates payment totals, updates order status and adds proper comments
Process authorization notification
Process a capture notification from a payment gateway for specified amount
Creates an invoice automatically if the amount covers the order base grand total completely Updates transactions hierarchy, if required Prevents transaction double processing Updates payment totals, updates order status and adds proper comments
TODO: eliminate logic duplication with capture()
Perform the payment review action: either initiated by merchant or by a notification
Sets order to processing state and optionally approves invoice or cancels the order
Process payment refund notification
Updates transactions hierarchy, if required Prevents transaction double processing Updates payment totals, updates order status and adds proper comments TODO: potentially a full capture can be refunded. In this case if there was only one invoice for that transaction then we should create a creditmemo from invoice and also refund it offline TODO: implement logic of chargebacks reimbursements (via negative amount)
Process void notification
Reset transaction additional info property
Additionnal transaction info setter
Void payment online
Create transaction, prepare its insertion into hierarchy and add its information to payment and comments
To add transactions and related information, the following information should be set to payment before processing:
To make sure transaction object won't cause trouble before saving, use $failsafe = true
Append transaction ID (if any) message to the specified message
Authorize payment either online or offline (process auth notification)
Updates transactions hierarchy, if required Prevents transaction double processing Updates payment totals, updates order status and adds proper comments
Prevent double processing of the same transaction by a payment notification Uses either specified txn_id or the transaction id that was set before
Before object save manipulations
Initialize resource model
Generate billing agreement object if there is billing agreement data
Adds it to order as related object
Round up and cast specified amount to float or string
Format price with currency sign
Update transaction ids for further processing If no transactions were set before invoking, may generate an "offline" transaction id
Return invoice model for transaction
Create new invoice with maximum qty for invoice for each item register this invoice and capture
Decide whether authorization transaction may close (if the amount to capture will cover entire order)
Check transaction existence by specified transaction id
Find one transaction by ID or type
Order payment either online
Updates transactions hierarchy, if required Prevents transaction double processing Updates payment totals, updates order status and adds proper comments
Prepend a "prepared_message" that may be set to the payment instance before, to the specified message Prepends value to the specified string or to the comment of specified order status history item instance
Totals updater utility method Updates self totals by keys in data array('key' => $delta)
Void payment either online or offline (process void notification) NOTE: that in some cases authorization can be voided after a capture. In such case it makes sense to use the amount void amount, for informational purposes.
Updates payment totals, updates order status and adds proper comments
Inherited From Mage_Payment_Model_Info
Mage_Payment_Model_Info::decrypt()
Mage_Payment_Model_Info::encrypt()
Mage_Payment_Model_Info::getAdditionalInformation()
Mage_Payment_Model_Info::getData()
Mage_Payment_Model_Info::getMethodInstance()
Mage_Payment_Model_Info::hasAdditionalInformation()
Mage_Payment_Model_Info::setAdditionalInformation()
Mage_Payment_Model_Info::unsAdditionalInformation()
Mage_Payment_Model_Info::_initAdditionalInformation()
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()
Documentation generated on Fri, 11 Feb 2011 17:09:40 +0200 by phpDocumentor 1.4.3