Overview

Namespaces

  • None
  • PHP

Classes

  • Eabi_DpdEE_Block_Adminhtml_Config_Form_Field_Country
  • Eabi_DpdEE_Block_Info_Payment
  • Eabi_DpdEE_Block_Invoice
  • Eabi_DpdEE_Block_Order_Courier
  • Eabi_DpdEE_Helper_Data
  • Eabi_DpdEE_Model_Api
  • Eabi_DpdEE_Model_Button_Courier
  • Eabi_DpdEE_Model_Config
  • Eabi_DpdEE_Model_Flat
  • Eabi_DpdEE_Model_Observer
  • Eabi_DpdEE_Model_Payment_Processor
  • Eabi_DpdEE_Model_Post
  • Eabi_DpdEE_Model_Source_Label_Position
  • Eabi_DpdEE_Model_Source_Service
  • Eabi_Livehandler_Adminhtml_LivehandlerController
  • Eabi_Livehandler_Adminhtml_RemoveController
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Button
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Livehandler_Block_Email
  • Eabi_LiveHandler_Block_Footer
  • Eabi_Livehandler_Helper_Data
  • Eabi_Livehandler_Helper_Keypair
  • Eabi_Livehandler_IndexController
  • Eabi_Livehandler_Model_Abstract
  • Eabi_Livehandler_Model_Action_Abstract
  • Eabi_Livehandler_Model_Action_Postoffice_Print
  • Eabi_Livehandler_Model_Action_Postoffice_Send
  • Eabi_Livehandler_Model_Adminhtml_Gridmanager
  • Eabi_Livehandler_Model_Directory_Collection
  • Eabi_Livehandler_Model_Entry
  • Eabi_Livehandler_Model_File_Object
  • Eabi_Livehandler_Model_Mysql4_Entry
  • Eabi_Livehandler_Model_Mysql4_Entry_Collection
  • Eabi_Livehandler_Model_Ordergrid
  • Eabi_Livehandler_Model_System_Config_Backend_Button
  • Eabi_Postoffice_Adminhtml_PostofficeController
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_License
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Postoffice_Block_Config_Rebuildbutton
  • Eabi_Postoffice_Helper_Countrycode
  • Eabi_Postoffice_Helper_Data
  • Eabi_Postoffice_IndexController
  • Eabi_Postoffice_Model_Carrier_Abstract
  • Eabi_Postoffice_Model_Carrier_Result
  • Eabi_Postoffice_Model_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule_Collection
  • Eabi_Postoffice_Model_Mysql4_Office
  • Eabi_Postoffice_Model_Mysql4_Office_Collection
  • Eabi_Postoffice_Model_Observer
  • Eabi_Postoffice_Model_Office
  • Eabi_Postoffice_Model_Orderview
  • Eabi_Postoffice_Model_Source_Sendevent
  • Eabi_Postoffice_Model_Updater
  • Overview
  • Namespace
  • Class
  • Tree

Class Eabi_DpdEE_Model_Payment_Processor

DPD Cash on delivery payment method

Displays optional description and additional cash on delivery fee when set.

Cash on delivery fee would be added on top of shipping price

Mage_Payment_Model_Method_Abstract
Extended by Eabi_DpdEE_Model_Payment_Processor
Author: matishalmann
Located at Eabi/DpdEE/Model/Payment/Processor.php
Methods summary
public Eabi_DpdEE_Model_Payment_Processor
# initialize( string $action, Mage_Sales_Model_Order $stateObject )

Assigns custom order status

Assigns custom order status

Parameters

$action
string
$action
$stateObject
Mage_Sales_Model_Order
$stateObject

Returns

Eabi_DpdEE_Model_Payment_Processor
public boolean
# isAvailable( Mage_Sales_Model_Quote $quote = null )

This method is available when:

  • Payment method is active
  • Order shipping address is destined to country which has cash on delivery price defined and not left empty
  • Cart contains only products which are in stock if in stock setting is enabled

This method is available when:

  • Payment method is active
  • Order shipping address is destined to country which has cash on delivery price defined and not left empty
  • Cart contains only products which are in stock if in stock setting is enabled

Parameters

$quote
Mage_Sales_Model_Quote
$quote

Returns

boolean
public Mage_Payment_Model_Abstract
# authorize( Varien_Object $payment, mixed $amount )

Internal payment authorization method

Internal payment authorization method

Parameters

$payment
Varien_Object
$orderPayment
$amount

Returns

Mage_Payment_Model_Abstract
public Mage_Payment_Model_Abstract
# capture( Varien_Object $payment, mixed $amount )

Internal payment capture method

Internal payment capture method

Parameters

$payment
Varien_Object
$orderPayment
$amount

Returns

Mage_Payment_Model_Abstract
public Mage_Payment_Model_Abstract
# void( Varien_Object $payment )

Internal payment void method

Internal payment void method

Parameters

$payment
Varien_Object
$invoicePayment

Returns

Mage_Payment_Model_Abstract
public boolean
# canUseForCurrency( string $currencyCode )

Fetches current currency to this object and then checks it validity

Internal method only checks for validity for this currency

Fetches current currency to this object and then checks it validity

Internal method only checks for validity for this currency

Parameters

$currencyCode
string
$currencyCode

Returns

boolean
public string
# getTitle( )

Displays current payment method title with extra cash on delivery fee when extra fee has been set

Displays current payment method title with extra cash on delivery fee when extra fee has been set

Returns

string
public float
# getShippingPrice( float $price, boolean $flag )

Returns final shipping price depending on shipping address and tax settings

Returns final shipping price depending on shipping address and tax settings

Parameters

$price
float
$price
$flag
boolean
$flag

Returns

float
public Eabi_Cod_Model_Payment
# assignData( mixed $data )

Assigns cash on delivery payment method description to payment method blocks so they would be displayed in e-mails and order confirmations

Assigns cash on delivery payment method description to payment method blocks so they would be displayed in e-mails and order confirmations

Parameters

$data
mixed
$data

Returns

Eabi_Cod_Model_Payment
protected string
# _getAssignedState( string $status )

Fetches order status name by code

Fetches order status name by code

Parameters

$status
string
$status

Returns

string
protected Mage_Sales_Model_Quote_Item
# _getQuoteItemModel( )

Returns

Mage_Sales_Model_Quote_Item
protected Mage_Catalog_Model_Product
# _getProductModel( )

Returns

Mage_Catalog_Model_Product
public string
# getInfoText( )

Returns current methods description

Returns current methods description

Returns

string
protected Eabi_DpdEE_Helper_Data
# _getDpdHelper( )

Returns

Eabi_DpdEE_Helper_Data
public Mage_Checkout_Model_Session
# getCheckout( )

Retrieves current checkout session model

Retrieves current checkout session model

Returns

Mage_Checkout_Model_Session
public Mage_Sales_Model_Quote
# getQuote( )

Retrieve sales quote model

Retrieve sales quote model

Returns

Mage_Sales_Model_Quote
Properties summary
protected string $_code Eabi_DpdEE_Model_Config::PAYMENT_METHOD_COD
#
protected boolean $_canAuthorize true
#
protected boolean $_canCapture true
#
protected boolean $_canVoid true
#
protected boolean $_canUseInternal true
#
protected boolean $_canUseCheckout true
#
protected boolean $_canUseForMultishipping true
#
protected string $_formBlockType 'eabi_dpdee/invoice'
#
protected string $_infoBlockType 'eabi_dpdee/info_payment'
#
protected mixed $_checkout
#
protected mixed $_quote
#
DPD Eesti - Pakivedu.ee Shipping module for Magento API documentation generated by ApiGen 2.8.0