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?