Beispiel #1
0
 /**
  * API instance getter
  * Sets current store id to current config instance and passes it to API
  *
  * @return Mage_Paypal_Model_Api_Nvp
  */
 public function getApi()
 {
     if (null === $this->_api) {
         $this->_api = Mage::getModel($this->_apiType);
     }
     $this->_api->setConfigObject($this->_config);
     return $this->_api;
 }