Mage_AmazonPayments_Model_Api_Asp_Abstract Class Reference

Inheritance diagram for Mage_AmazonPayments_Model_Api_Asp_Abstract:

Mage_AmazonPayments_Model_Api_Abstract Varien_Object Mage_AmazonPayments_Model_Api_Asp Mage_AmazonPayments_Model_Api_Asp_Fps

List of all members.

Public Member Functions

 setStoreId ($id)
 getStoreId ()

Public Attributes

const PAY_ACTION_SETTLE = 0
const PAY_ACTION_SETTLE_CAPTURE = 1

Protected Member Functions

 _getAmount ()
 _isSandbox ()
 _getConfig ($path)

Protected Attributes

 $paymentCode = 'amazonpayments_asp'
 $_amountModel = 'amazonpayments/api_asp_amount'
 $_storeId = null


Detailed Description

Definition at line 34 of file Abstract.php.


Member Function Documentation

_getAmount (  )  [protected]

Get singleton with AmazonPayments ASP Amount Model

Returns:
Mage_AmazonPayments_Model_Api_Asp_Amount

Definition at line 84 of file Abstract.php.

00085     {
00086         return Mage::getSingleton($this->_amountModel);
00087     }

_getConfig ( path  )  [protected]

Get value from the module config

Parameters:
string $path
Returns:
string

Definition at line 105 of file Abstract.php.

00106     {
00107         return Mage::getStoreConfig('payment/' . $this->paymentCode . '/' . $path, $this->getStoreId());
00108     }

_isSandbox (  )  [protected]

Return sandbox mode flag

Returns:
bool

Definition at line 94 of file Abstract.php.

00095     {
00096         return $this->_getConfig('is_sandbox'); 
00097     }

getStoreId (  ) 

Get store id for current operation

Returns:
string

Definition at line 74 of file Abstract.php.

00075     {
00076         return $this->_storeId;
00077     }

setStoreId ( id  ) 

Set store id for current operation

Parameters:
$id string
Returns:
Mage_AmazonPayments_Model_Api_Asp_Abstract

Definition at line 63 of file Abstract.php.

00064     {
00065         $this->_storeId = $id;
00066         return $this;
00067     }


Member Data Documentation

$_amountModel = 'amazonpayments/api_asp_amount' [protected]

Amount model path

Definition at line 50 of file Abstract.php.

$_storeId = null [protected]

Store id for current operation

Definition at line 55 of file Abstract.php.

$paymentCode = 'amazonpayments_asp' [protected]

rewrited for Mage_AmazonPayments_Model_Api_Abstract

Reimplemented from Mage_AmazonPayments_Model_Api_Abstract.

Definition at line 45 of file Abstract.php.

const PAY_ACTION_SETTLE = 0

payment actions

Definition at line 39 of file Abstract.php.

Definition at line 40 of file Abstract.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:31 2009 for Magento by  doxygen 1.5.8