Display authorized payment captured state on the orders table

This commit is contained in:
Mészáros Róbert 2020-04-22 19:27:07 +03:00
parent 72cb5b4944
commit 7e41ca3852
3 changed files with 115 additions and 3 deletions

View file

@ -6,6 +6,7 @@ namespace Inpsyde\PayPalCommerce\WcGateway;
use Dhii\Data\Container\ContainerInterface;
use Inpsyde\PayPalCommerce\WcGateway\Admin\AuthorizedPaymentStatus;
use Inpsyde\PayPalCommerce\WcGateway\Admin\AuthorizedPaymentStatusColumn;
use Inpsyde\PayPalCommerce\WcGateway\Admin\OrderDetail;
use Inpsyde\PayPalCommerce\WcGateway\Checkout\DisableGateways;
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGateway;
@ -71,5 +72,9 @@ return [
},
'wcgateway.admin.authorized-payment-status' => function(ContainerInterface $container): AuthorizedPaymentStatus {
return new AuthorizedPaymentStatus();
},
'wcgateway.admin.authorized-payment-status-column' => function(ContainerInterface $container): AuthorizedPaymentStatusColumn {
$settings = $container->get('wcgateway.settings');
return new AuthorizedPaymentStatusColumn($settings);
}
];