/** * Return standard configs * * @return array */ public function getConfig() { $config = []; if ($this->methodInstance->isAvailable()) { $config = ['payment' => [$this->methodCode => ['actionUrl' => $this->methodInstance->getActionUrl(), 'bannerUrl' => $this->methodInstance->getConfigData('banner_checkout'), 'type_checkout' => $this->methodInstance->getConfigData('type_checkout'), 'logoUrl' => $this->getImageUrl('mp_logo.png')]]]; if ($this->methodInstance->getConfigData('type_checkout') == 'iframe') { $config['payment'][$this->methodCode]['iframe_height'] = $this->methodInstance->getConfigData('iframe_height'); } } return $config; }