Add reauthorization functionality.

This commit is contained in:
Pedro Silva 2024-02-27 12:00:09 +00:00
parent c6ef12a626
commit 5469cdb3dd
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
7 changed files with 173 additions and 9 deletions

View file

@ -381,13 +381,15 @@ return array(
$notice = $container->get( 'wcgateway.notice.authorize-order-action' );
$settings = $container->get( 'wcgateway.settings' );
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
$amount_factory = $container->get( 'api.factory.amount' );
return new AuthorizedPaymentsProcessor(
$order_endpoint,
$payments_endpoint,
$logger,
$notice,
$settings,
$subscription_helper
$subscription_helper,
$amount_factory
);
},
'wcgateway.admin.render-authorize-action' => static function ( ContainerInterface $container ): RenderAuthorizeAction {