Add Amex icon and fix the icons order

This commit is contained in:
Daniel Dudzic 2024-05-10 00:55:28 +02:00
parent 41b59bdfb4
commit a14624b1f3
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
4 changed files with 34 additions and 21 deletions

View file

@ -44,6 +44,13 @@
padding: 0.6em 1em;
}
label[for="payment_method_ppcp-axo-gateway"] .ppcp-card-icon {
max-height: 25px;
#payment .payment_methods li label[for="payment_method_ppcp-axo-gateway"] {
img {
float: none;
vertical-align: middle;
}
.ppcp-card-icon {
max-height: 25px;
}
}

View file

@ -102,28 +102,32 @@ return array(
'axo.card_icons.axo' => static function ( ContainerInterface $container ): array {
return array(
array(
'title' => 'Dinersclub',
'file' => 'dinersclub-light.svg',
),
array(
'title' => 'Discover',
'file' => 'discover-light.svg',
),
array(
'title' => 'JCB',
'file' => 'jcb-light.svg',
'title' => 'Visa',
'file' => 'visa-light.svg',
),
array(
'title' => 'MasterCard',
'file' => 'mastercard-light.svg',
),
array(
'title' => 'UnionPay',
'file' => 'unionpay-light.svg',
'title' => 'Amex',
'file' => 'amex-light.svg',
),
array(
'title' => 'Visa',
'file' => 'visa-light.svg',
'title' => 'Discover',
'file' => 'discover-light.svg',
),
array(
'title' => 'Diners Club',
'file' => 'dinersclub-light.svg',
),
array(
'title' => 'JCB',
'file' => 'jcb-light.svg',
),
array(
'title' => 'UnionPay',
'file' => 'unionpay-light.svg',
),
);
},

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -804,12 +804,13 @@ return array(
'hiper' => _x( 'Hiper', 'Name of credit card', 'woocommerce-paypal-payments' ),
),
'options_axo' => array(
'dinersclub-light' => _x( 'Diners Club (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'discover-light' => _x( 'Discover (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'jcb-light' => _x( 'JCB (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'mastercard-light' => _x( 'Mastercard (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'unionpay-light' => _x( 'UnionPay (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'visa-light' => _x( 'Visa (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'mastercard-light' => _x( 'Mastercard (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'amex-light' => _x( 'Amex (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'discover-light' => _x( 'Discover (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'dinersclub-light' => _x( 'Diners Club (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'jcb-light' => _x( 'JCB (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
'unionpay-light' => _x( 'UnionPay (light)', 'Name of credit card', 'woocommerce-paypal-payments' ),
),
'screens' => array(
State::STATE_ONBOARDED,