diff --git a/README.md b/README.md index ea34638..c2cf703 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,14 @@ $ composer create-project payum/skeleton addGatewayFactory('paypal', new \Acme\Paypal\PaypalGatewayFactory($defaultConfig)) + ->addGatewayFactory('paypal', function(array $config, GatewayFactoryInterface $coreGatewayFactory) { + return new \Acme\Paypal\PaypalGatewayFactory($config, $coreGatewayFactory) + }) ->addGateway('paypal', [ 'factory' => 'paypal',