mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactoring AXO module
This commit is contained in:
parent
9d2525ffcb
commit
288abde752
4 changed files with 85 additions and 75 deletions
|
@ -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'),
|
||||
);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue