We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558c01c commit 69ed1c2Copy full SHA for 69ed1c2
README.md
@@ -16,11 +16,14 @@ $ composer create-project payum/skeleton
16
<?php
17
18
use Payum\Core\PayumBuilder;
19
+use Payum\Core\GatewayFactoryInterface;
20
21
$defaultConfig = [];
22
23
$payum = (new PayumBuilder)
- ->addGatewayFactory('paypal', new \Acme\Paypal\PaypalGatewayFactory($defaultConfig))
24
+ ->addGatewayFactory('paypal', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
25
+ return new \Acme\Paypal\PaypalGatewayFactory($config, $coreGatewayFactory)
26
+ })
27
28
->addGateway('paypal', [
29
'factory' => 'paypal',
0 commit comments