/** * @test * * @expectedException \Payum\Core\Exception\LogicException * @expectedExceptionMessage The identifier, password fields are required. */ public function shouldThrowIfRequiredOptionsNotPassed() { $factory = new Be2BillDirectGatewayFactory(); $factory->create(); }
/** * {@inheritDoc} */ protected function populateConfig(ArrayObject $config) { $config->defaults(['payum.factory_name' => 'be2bill_offsite', 'payum.factory_title' => 'Be2Bill Offsite', 'payum.action.capture' => new CaptureOffsiteAction(), 'payum.action.capture_null' => new CaptureOffsiteNullAction(), 'payum.action.notify_null' => new NotifyNullAction(), 'payum.action.notify' => new NotifyAction()]); parent::populateConfig($config); }
/** * {@inheritDoc} */ protected function populateConfig(ArrayObject $config) { $config->defaults(array('payum.factory_name' => 'be2bill_offsite', 'payum.factory_title' => 'Be2Bill Offsite', 'payum.action.capture' => new CaptureOffsiteAction())); parent::populateConfig($config); }