/**
  * @test
  *
  * @expectedException \Payum\Core\Exception\LogicException
  * @expectedExceptionMessage The username, password, signature fields are required.
  */
 public function shouldThrowIfRequiredOptionsNotPassed()
 {
     $factory = new PaypalExpressCheckoutGatewayFactory();
     $factory->create();
 }
 /**
  * {@inheritDoc}
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $config = $serviceLocator->get('Config');
     $gatewayFactory = new PaypalExpressCheckoutGatewayFactory($config['payum']['gateway_options']['paypal']);
     return $gatewayFactory->create();
 }