• Resolved Scott

    (@sstracy)


    I would like to change the payment method titles for when customers use the Apple Pay or Chrome pay options. Right now “(Stripe)” is included in these titles and I would like it removed (for example, so it only says “Apple Pay” without the “(Stripe)” part of the title).

    I am seeing this title within order detail pages and order emails from WooCommerce.

    I have already found this post which did not solve my issue:
    https://www.ads-software.com/support/topic/apple-pay-stripe-and-chrome-payment-request-stripe-title/

    I am using the latest version of the plugin.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Daniyal Ahmed (a11n)

    (@daniyalahmedk)

    Hi there,

    Thanks for reaching out.

    Can you please try to add the following code in your child theme functions.php file?

    function replace_gateway_title( $title, $id ) {
    	// We remove (Stripe) from the gateway titles. 
    	return str_replace( '(Stripe)', '', $title );
    }
    add_filter( 'woocommerce_gateway_title', 'replace_gateway_title', 99, 2 );

    Please give it a try and let me know if it helps!

    Best,

    I have also tried the above code and when a customer order via Apple Pay it still has the Apple Pay (Stripe) as the payment method

    Would be ideal to remove the Stripe part as some customers don’t know what Stripe is

    There another shortcode to try ?

    Thread Starter Scott

    (@sstracy)

    Daniyal,

    Yep, unfortunately that snippet doesn’t seem to change anything for me and I’m still seeing “Apple Pay (Stripe) on my order details pages and emails. I had already mentioned this snippet in my original post as well but I tried it again, copying and pasting, just to make sure.

    It seems like maybe this label which I believe is coming from,

    https://github.com/woocommerce/woocommerce-gateway-stripe/blob/99a4476c8397ccf57e2a98bbd2a6c9cc2c92e023/includes/payment-methods/class-wc-stripe-payment-request.php#L300

    Is not playing well with the ‘woocommerce_gateway_title’ filter option.

    There seems to be a filter to remove mentions of “(Woocommerce)”… but is there a similar option for removing “(Stripe)” from the quick pay payment titles?
    Example:
    add_filter( ‘wc_stripe_payment_request_total_label_suffix’, ‘__return_null’ );

    Can you please help us further with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit “Apple Pay (Stripe)” and “Chrome Payment Request (Stripe)” titles’ is closed to new replies.