mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
add payee repository
This commit is contained in:
parent
2182147f11
commit
89a9daff7f
1 changed files with 2 additions and 2 deletions
|
@ -42,12 +42,12 @@ return [
|
|||
$cart = WC()->cart;
|
||||
$shipping = WC()->shipping();
|
||||
$requestData = $container->get('button.request-data');
|
||||
$repository = $container->get('api.cart-repository');
|
||||
$repository = $container->get('api.repository.cart');
|
||||
return new ChangeCartEndpoint($cart, $shipping, $requestData, $repository);
|
||||
},
|
||||
'button.endpoint.create-order' => function (ContainerInterface $container): CreateOrderEndpoint {
|
||||
$requestData = $container->get('button.request-data');
|
||||
$repository = $container->get('api.cart-repository');
|
||||
$repository = $container->get('api.repository.cart');
|
||||
$apiClient = $container->get('api.endpoint.order');
|
||||
return new CreateOrderEndpoint($requestData, $repository, $apiClient);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue