• Resolved tuomonurkkala

    (@tuomonurkkala)


    Hi there,

    I have made a little customization to your plugin and I added it to my functions.php:

    function add_credit_card_gateway_icons( $icon_string, $gateway_id ) {
    	if ( 'stripe' === $gateway_id ) {
    		$icon_string .= '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/stripe.png" class="stripe-stripe-icon stripe-icon" alt="Stripe" />';		
    	}
    	return $icon_string;
    }
    
    add_filter( 'woocommerce_gateway_icon', 'add_credit_card_gateway_icons', 10, 2 );

    I have added stripe.png image to woocommerce-gateway-stripe -> assets -> images
    Is it possible if you add this image to your system so I don’t have to add it again after new updates?
    Here is the Stripe.png:
    https://ufile.io/js4qrakv
    The png size is 53×22 px.

    Here is the customization in work:
    https://ufile.io/vi252mal

    Without any customization the checkout looks like this:
    https://ufile.io/wccy5xh7

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stripe logo in checkout’ is closed to new replies.