/**
  * Get the omnipay gateway associated with this payment,
  * with configuration applied.
  *
  * @throws \RuntimeException - when gateway doesn't exist.
  * @return AbstractGateway omnipay gateway class
  */
 public function oGateway()
 {
     $gatewayName = $this->payment->Gateway;
     $gateway = $this->getGatewayFactory()->create($gatewayName, self::$httpClient, self::$httpRequest);
     $parameters = GatewayInfo::getParameters($gatewayName);
     if (is_array($parameters)) {
         $gateway->initialize($parameters);
     }
     return $gateway;
 }