_isScopePrivate = false; } /** * Set payment method code * * @return void */ protected function _construct() { parent::_construct(); $this->_paymentMethodCode = \Magento\Paypal\Model\Config::METHOD_PAYFLOWADVANCED; } /** * Get frame action URL * * @return string */ public function getFrameActionUrl() { return $this->getUrl('paypal/payflowadvanced/form', ['_secure' => true]); } /** * Check sandbox mode * * @return bool */ public function isTestMode() { $mode = $this->_paymentData->getMethodInstance( \Magento\Paypal\Model\Config::METHOD_PAYFLOWADVANCED )->getConfigData( 'sandbox_flag' ); return (bool)$mode; } }