process orders when credit card is approved

This commit is contained in:
David Remer 2020-07-16 10:16:43 +03:00
parent f9dac40c47
commit 241a5e170d
5 changed files with 36 additions and 10 deletions

View file

@ -77,12 +77,14 @@ return [
$orderEndpoint = $container->get('api.endpoint.order');
$paymentsEndpoint = $container->get('api.endpoint.payments');
$orderFactory = $container->get('api.factory.order');
$threeDsecure = $container->get('button.helper.three-d-secure');
return new OrderProcessor(
$sessionHandler,
$cartRepository,
$orderEndpoint,
$paymentsEndpoint,
$orderFactory
$orderFactory,
$threeDsecure
);
},
'wcgateway.processor.authorized-payments' => static function (ContainerInterface $container): AuthorizedPaymentsProcessor {