Add fees breakdown to capture

This commit is contained in:
Alex P 2022-02-14 10:46:33 +02:00
parent 2ab75368b4
commit a82b091bf1
3 changed files with 62 additions and 21 deletions

View file

@ -243,7 +243,10 @@ return array(
'api.factory.capture' => static function ( ContainerInterface $container ): CaptureFactory {
$amount_factory = $container->get( 'api.factory.amount' );
return new CaptureFactory( $amount_factory );
return new CaptureFactory(
$amount_factory,
$container->get( 'api.factory.seller-receivable-breakdown' )
);
},
'api.factory.purchase-unit' => static function ( ContainerInterface $container ): PurchaseUnitFactory {