/** * Populate data that is read from configurations */ protected function addConfiguredValues() { $data = array( 'Vendor' => $this->config->getVendorName(), 'VPSProtocol' => $this->config->getProtocolVersion(), 'Currency' => $this->config->getCurrency(), 'TxType' => $this->config->getTxType(), 'SendEMail' => $this->config->getSendEmail(), 'VendorEMail' => $this->config->getVendorEmail(), 'Apply3DSecure' => $this->config->getApply3dSecure(), 'ApplyAVSCV2' => $this->config->getApplyAvsCv2(), ); $partnerId = $this->config->getPartnerId(); if (!empty($partnerId)) { $data['ReferrerID'] = $partnerId; } if ($data['SendEMail'] == 1) { $data['eMailMessage'] = $this->config->getEmailMessage(); } $allowGiftAid = $this->config->getAllowGiftAid(); if (!isset($this->data['AllowGiftAid'])) { $data['AllowGiftAid'] = $allowGiftAid; } $this->updateData($data); }