diff --git a/src/OmnipayGatewayFactory.php b/src/OmnipayGatewayFactory.php index 00be0c3..aced18b 100644 --- a/src/OmnipayGatewayFactory.php +++ b/src/OmnipayGatewayFactory.php @@ -75,7 +75,7 @@ protected function populateConfig(ArrayObject $config) 'Given omnipay gateway type %s or class is not supported. Supported: %s', $config['type'], implode(', ', $this->omnipayGatewayFactory->getSupportedGateways()) - )); + ), 0, $e); } $config['payum.default_options'] = array_replace(['testMode' => true], $gateway->getDefaultParameters());