Add googlepay wc gateway

This commit is contained in:
Emili Castells Guasch 2024-07-16 14:17:12 +02:00
parent 82f46baa16
commit e70891d359
6 changed files with 184 additions and 5 deletions

View file

@ -939,6 +939,12 @@ return array(
);
},
'googlepay.wc-gateway' => static function ( ContainerInterface $container ): GooglePayGateway {
return new GooglePayGateway();
return new GooglePayGateway(
$container->get( 'wcgateway.order-processor' ),
$container->get( 'wc-subscriptions.helper' ),
$container->get( 'api.factory.paypal-checkout-url' ),
$container->get( 'wcgateway.processor.refunds' ),
$container->get( 'wcgateway.transaction-url-provider' )
);
},
);