Create wc order in approval webhook if missing

This commit is contained in:
Alex P 2023-06-14 12:44:06 +03:00
parent 10d99578d6
commit 46ea7621d3
No known key found for this signature in database
GPG key ID: 54487A734A204D71
8 changed files with 302 additions and 44 deletions

View file

@ -82,7 +82,13 @@ return array(
$payment_token_factory = $container->get( 'vaulting.payment-token-factory' );
return array(
new CheckoutOrderApproved( $logger, $order_endpoint ),
new CheckoutOrderApproved(
$logger,
$order_endpoint,
$container->get( 'session.handler' ),
$container->get( 'wcgateway.funding-source.renderer' ),
$container->get( 'wcgateway.order-processor' )
),
new CheckoutOrderCompleted( $logger ),
new CheckoutPaymentApprovalReversed( $logger ),
new PaymentCaptureRefunded( $logger ),