diff --git a/modules/ppcp-axo/resources/css/styles.scss b/modules/ppcp-axo/resources/css/styles.scss index ccd82e14f..196b2086c 100644 --- a/modules/ppcp-axo/resources/css/styles.scss +++ b/modules/ppcp-axo/resources/css/styles.scss @@ -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; + } } diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index 780f59a8a..e7a450692 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -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', ), ); }, diff --git a/modules/ppcp-wc-gateway/assets/images/axo/amex-light.svg b/modules/ppcp-wc-gateway/assets/images/axo/amex-light.svg new file mode 100644 index 000000000..1228978ca --- /dev/null +++ b/modules/ppcp-wc-gateway/assets/images/axo/amex-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 28915f0da..dcbc43333 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -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,