*/ class Mage_Paypal_Block_Payflow_Advanced_Iframe extends Mage_Paypal_Block_Payflow_Link_Iframe { /** * Set payment method code */ protected function _construct() { parent::_construct(); $this->_paymentMethodCode = Mage_Paypal_Model_Config::METHOD_PAYFLOWADVANCED; } /** * Get frame action URL * * @return string */ public function getFrameActionUrl() { return $this->getUrl('paypal/payflowadvanced/form', array('_secure' => true)); } /** * Check sandbox mode * * @return bool */ public function isTestMode() { $mode = Mage::helper('payment') ->getMethodInstance(Mage_Paypal_Model_Config::METHOD_PAYFLOWADVANCED) ->getConfigData('sandbox_flag'); return (bool) $mode; } }