Mage_Paypal_Model_Abstract Class Reference

Inheritance diagram for Mage_Paypal_Model_Abstract:

Mage_Payment_Model_Method_Abstract Varien_Object

List of all members.

Public Member Functions

 getApi ()
 getSession ()
 getCheckout ()
 getQuote ()
 getRedirectUrl ()
 getCountryRegionId ()


Detailed Description

PayPal Abstract Payment Module

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 33 of file Abstract.php.


Member Function Documentation

getApi (  ) 

Get Paypal API Model

Returns:
Mage_Paypal_Model_Api_Nvp

Definition at line 40 of file Abstract.php.

00041     {
00042         return Mage::getSingleton('paypal/api_nvp');
00043     }

getCheckout (  ) 

Get checkout session namespace

Returns:
Mage_Checkout_Model_Session

Definition at line 60 of file Abstract.php.

00061     {
00062         return Mage::getSingleton('checkout/session');
00063     }

getCountryRegionId (  ) 

Definition at line 80 of file Abstract.php.

00081     {
00082         $a = $this->getApi()->getShippingAddress();
00083         return $this;
00084     }

getQuote (  ) 

Get current quote

Returns:
Mage_Sales_Model_Quote

Definition at line 70 of file Abstract.php.

00071     {
00072         return $this->getCheckout()->getQuote();
00073     }

getRedirectUrl (  ) 

Definition at line 75 of file Abstract.php.

00076     {
00077         return $this->getApi()->getRedirectUrl();
00078     }

getSession (  ) 

Get paypal session namespace

Returns:
Mage_Paypal_Model_Session

Definition at line 50 of file Abstract.php.

00051     {
00052         return Mage::getSingleton('paypal/session');
00053     }


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

Generated on Sat Jul 4 17:24:32 2009 for Magento by  doxygen 1.5.8