public function getDefaultParameters() { $settings = parent::getDefaultParameters(); $settings['solutionType'] = array('Sole', 'Mark'); $settings['landingPage'] = array('Billing', 'Login'); $settings['headerImageUrl'] = ''; return $settings; }
/** * Handle the command. * * @param ConfigurationRepositoryInterface $configuration */ public function handle(ConfigurationRepositoryInterface $configuration) { /* @var EncryptedFieldTypePresenter $username */ /* @var EncryptedFieldTypePresenter $password */ /* @var EncryptedFieldTypePresenter $signature */ /* @var ConfigurationInterface $mode */ $username = $configuration->presenter('anomaly.extension.paypal_pro_gateway::username', $this->gateway->getSlug()); $password = $configuration->presenter('anomaly.extension.paypal_pro_gateway::password', $this->gateway->getSlug()); $signature = $configuration->presenter('anomaly.extension.paypal_pro_gateway::signature', $this->gateway->getSlug()); $mode = $configuration->get('anomaly.extension.paypal_pro_gateway::test_mode', $this->gateway->getSlug()); $gateway = new ProGateway(); $gateway->setUsername($username->decrypted()); $gateway->setPassword($password->decrypted()); $gateway->setSignature($signature->decrypted()); $gateway->setTestMode($mode->getValue()); return $gateway; }