mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Add Amex icon and fix the icons order
This commit is contained in:
parent
41b59bdfb4
commit
a14624b1f3
4 changed files with 34 additions and 21 deletions
|
@ -44,6 +44,13 @@
|
||||||
padding: 0.6em 1em;
|
padding: 0.6em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
label[for="payment_method_ppcp-axo-gateway"] .ppcp-card-icon {
|
#payment .payment_methods li label[for="payment_method_ppcp-axo-gateway"] {
|
||||||
|
img {
|
||||||
|
float: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ppcp-card-icon {
|
||||||
max-height: 25px;
|
max-height: 25px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,28 +102,32 @@ return array(
|
||||||
'axo.card_icons.axo' => static function ( ContainerInterface $container ): array {
|
'axo.card_icons.axo' => static function ( ContainerInterface $container ): array {
|
||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
'title' => 'Dinersclub',
|
'title' => 'Visa',
|
||||||
'file' => 'dinersclub-light.svg',
|
'file' => 'visa-light.svg',
|
||||||
),
|
|
||||||
array(
|
|
||||||
'title' => 'Discover',
|
|
||||||
'file' => 'discover-light.svg',
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'title' => 'JCB',
|
|
||||||
'file' => 'jcb-light.svg',
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => 'MasterCard',
|
'title' => 'MasterCard',
|
||||||
'file' => 'mastercard-light.svg',
|
'file' => 'mastercard-light.svg',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => 'UnionPay',
|
'title' => 'Amex',
|
||||||
'file' => 'unionpay-light.svg',
|
'file' => 'amex-light.svg',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => 'Visa',
|
'title' => 'Discover',
|
||||||
'file' => 'visa-light.svg',
|
'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',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
1
modules/ppcp-wc-gateway/assets/images/axo/amex-light.svg
Normal file
1
modules/ppcp-wc-gateway/assets/images/axo/amex-light.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.6 KiB |
|
@ -804,12 +804,13 @@ return array(
|
||||||
'hiper' => _x( 'Hiper', 'Name of credit card', 'woocommerce-paypal-payments' ),
|
'hiper' => _x( 'Hiper', 'Name of credit card', 'woocommerce-paypal-payments' ),
|
||||||
),
|
),
|
||||||
'options_axo' => array(
|
'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' ),
|
'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(
|
'screens' => array(
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue