diff --git a/PaypalRestGatewayFactory.php b/PaypalRestGatewayFactory.php index 8cf8363..ec05491 100644 --- a/PaypalRestGatewayFactory.php +++ b/PaypalRestGatewayFactory.php @@ -49,7 +49,7 @@ protected function populateConfig(ArrayObject $config) } $credential = new OAuthTokenCredential($config['client_id'], $config['client_secret']); - $config['payum.api'] = new ApiContext($credential); + return new ApiContext($credential); }; } }