The Stripe extension includes some assets to display payment method icons. You can use the wc_stripe_payment_icons
filter to use different icons than the ones included in the extension by default.
For example, to replace the existing Visa icon, you could use this snippet:
add_filter( 'wc_stripe_payment_icons', 'ah_change_stripe_icons' );
function ah_change_stripe_icons( $icons ) {
// Use var_dump( $icons ); to show all possible icons.
$icons['visa'] = '<img src="https://www.example.com/images/visa.svg" />';
return $icons;
}
NOTE: We are unable to provide support for custom code under our Support Policy. If you need to customize a snippet further or extend its functionality, we highly recommend Codeable or a Certified WooExpert.