Add tokens cache

This commit is contained in:
Emili Castells Guasch 2024-08-06 10:44:54 +02:00
parent bea17db588
commit 54657ed649
7 changed files with 107 additions and 28 deletions

View file

@ -366,7 +366,8 @@ return array(
$container->get( 'api.partner_merchant_id-production' ),
$container->get( 'api.partner_merchant_id-sandbox' ),
$container->get( 'api.endpoint.billing-agreements' ),
$logger
$logger,
new Cache( 'ppcp-client-credentials-cache' )
);
},
'wcgateway.order-processor' => static function ( ContainerInterface $container ): OrderProcessor {