Refactoring AXO module

This commit is contained in:
Pedro Silva 2024-02-16 17:31:59 +00:00
parent 9d2525ffcb
commit 288abde752
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 85 additions and 75 deletions

View file

@ -41,7 +41,18 @@ return array(
'axo.gateway' => static function ( ContainerInterface $container ): AxoGateway {
return new AxoGateway(
$container->get( 'wcgateway.settings' )
$container->get( 'wcgateway.settings' ),
$container->get( 'wcgateway.url' ),
$container->get( 'axo.card_icons' )
);
},
'axo.card_icons' => static function ( ContainerInterface $container ): array {
return array(
array('title' => 'Visa', 'file' => 'visa-dark.svg'),
array('title' => 'MasterCard', 'file' => 'mastercard-dark.svg'),
array('title' => 'American Express', 'file' => 'amex.svg'),
array('title' => 'Discover', 'file' => 'discover.svg'),
);
},