Add process payment for bancontact gateway (WIP)

This commit is contained in:
Emili Castells Guasch 2024-08-09 17:21:38 +02:00
parent a65d4fb2dc
commit 633ae1aed0
4 changed files with 123 additions and 15 deletions

View file

@ -12,7 +12,10 @@ namespace WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
return array(
'ppcp-local-apms.bancontact.wc-gateway' => static function ( ContainerInterface $container ): BancontactGateway {
return new BancontactGateway();
'ppcp-local-apms.bancontact.wc-gateway' => static function ( ContainerInterface $container ): BancontactGateway {
return new BancontactGateway(
$container->get( 'api.endpoint.orders' ),
$container->get( 'api.factory.purchase-unit' )
);
},
);