diff --git a/assets/images/payment-method-icons/generic-card.svg b/assets/images/payment-methods/generic-card.svg similarity index 100% rename from assets/images/payment-method-icons/generic-card.svg rename to assets/images/payment-methods/generic-card.svg diff --git a/client/checkout/blocks/payment-method-label.js b/client/checkout/blocks/payment-method-label.js index 2239f014e29..ddb1506e5a9 100644 --- a/client/checkout/blocks/payment-method-label.js +++ b/client/checkout/blocks/payment-method-label.js @@ -9,7 +9,6 @@ import { normalizeCurrencyToMinorUnit } from '../utils'; import { getUPEConfig } from 'wcpay/utils/checkout'; import { __ } from '@wordpress/i18n'; import './style.scss'; -import GenericCardIcon from 'assets/images/payment-method-icons/generic-card.svg?asset'; export default ( { api, @@ -37,12 +36,6 @@ export default ( { window.wcBlocksCheckoutData?.storeCountry || 'US'; - let icon = - upeAppearanceTheme === 'night' ? upeConfig.darkIcon : upeConfig.icon; - if ( upeName === 'card' ) { - icon = GenericCardIcon; - } - return ( <>
@@ -56,7 +49,11 @@ export default ( { ) } {
diff --git a/includes/payment-methods/class-cc-payment-method.php b/includes/payment-methods/class-cc-payment-method.php index e0a3677d53e..4ec498aa182 100644 --- a/includes/payment-methods/class-cc-payment-method.php +++ b/includes/payment-methods/class-cc-payment-method.php @@ -27,7 +27,7 @@ public function __construct( $token_service ) { $this->title = __( 'Credit card / debit card', 'woocommerce-payments' ); $this->is_reusable = true; $this->currencies = [];// All currencies are supported. - $this->icon_url = plugins_url( 'assets/images/payment-methods/cc.svg', WCPAY_PLUGIN_FILE ); + $this->icon_url = plugins_url( 'assets/images/payment-methods/generic-card.svg', WCPAY_PLUGIN_FILE ); } /**