function add_credit_card_gateway_icons( $icon_string, $gateway_id ) {
if ( 'stripe' === $gateway_id ) {
$icon_string = '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/visa.svg" class="stripe-visa-icon stripe-icon" alt="Visa" />';
$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/mastercard.svg" class="stripe-mastercard-icon stripe-icon" alt="Mastercard" />';
$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/amex.svg" class="stripe-amex-icon stripe-icon" alt="American Express" />';
$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/discover.svg" class="stripe-discover-icon stripe-icon" alt="Discover" />';
$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/diners.svg" class="stripe-diners-icon stripe-icon" alt="Diners" />';
$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/jcb.svg" class="stripe-jcb-icon stripe-icon" alt="JCB" />';
}
return $icon_string;
}
add_filter( 'woocommerce_gateway_icon', 'add_credit_card_gateway_icons', 10, 2 );
But it doesn’t contain the icon for UnionPay payment method. Please, how can we add it?
Thanks!
]]>function 123_edd_payment_icon($icons) {
$icons['url/to/your/image/icon.png'] = 'Payment1';
return $icons;
}
add_filter('edd_accepted_payment_icons', '123_edd_payment_icon');
function 456_edd_payment_icon($icons) {
$icons['url/to/your/image/icon.png'] = 'Payment2';
return $icons;
}
add_filter('edd_accepted_payment_icons', '456_edd_payment_icon');
Sorry im very new with this, any help is appreciated.
Thank you.
]]>It turns back to normal after i uninstall the plugin, not just deactivating it.
Please help, rest of the things work perfectly fine. Thanks.
]]>I would like to know if it’s possible to place image of payment icons (mastercard,visa,etc.) beside 2checkout payment description on a checkout page.? I’m not skilful enough to do that on my own so please assist. Other than that I’m very satisfied with plugin and I already made my review.
Thank you in advance.
Cheers,
Dragan
Kind regards
Salcin
Is there some good plugin to suggest which ones we want to show?
]]>