Add option to display the payment status

This commit is contained in:
Mészáros Róbert 2020-04-22 16:07:02 +03:00
parent 708efab5e4
commit 24dd72142b
3 changed files with 45 additions and 1 deletions

View file

@ -5,6 +5,8 @@ declare(strict_types=1);
namespace Inpsyde\PayPalCommerce\WcGateway;
use Dhii\Data\Container\ContainerInterface;
use Inpsyde\PayPalCommerce\WcGateway\Admin\AuthorizedPaymentStatus;
use Inpsyde\PayPalCommerce\WcGateway\Admin\OrderDetail;
use Inpsyde\PayPalCommerce\WcGateway\Checkout\DisableGateways;
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGateway;
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGatewayBase;
@ -67,4 +69,7 @@ return [
$paymentsEndpoint = $container->get('api.endpoint.payments');
return new AuthorizedPaymentsProcessor($orderEndpoint, $paymentsEndpoint);
},
'wcgateway.admin.authorized-payment-status' => function(ContainerInterface $container): AuthorizedPaymentStatus {
return new AuthorizedPaymentStatus();
}
];