It is great that the Stripe plugin for WooCommerce provides Apple Pay support.

What is not so great is that by default, the customer sees “Pay COMPANY_NAME (via WooCommerce)” on the checkout form.

For the most part, customers don’t care which software platform your store is based on. And in the worst case, not knowing what “via WooCommerce” means might scare your customers into abandoning their shopping cart. You definitely don’t want to lose an order because the customer was scared or confused.

So our recommendation is to remove the ‘(via WooCommerce)‘ advertising from your e-commerce checkouts.

Removing Stripe’s via WooCommerce for Apple Pay Payments

OnSiteWP recently researched this question.  Unfortunately the Stripe payments plugin doesn’t have a checkbox to remove the woocommerce branding.  Our solution was found by reading through the WooCommerce Stripe plugin PHP source code.

Our resident WordPress developer found an easy way to fix it so we are sharing it with the WordPress community. (Thanks Brian!)

It involves adding a line to the functions.php file in your WordPress site’s child theme. If you don’t have a child theme, we recommend you set one up. Otherwise an update to your theme will overwrite this modification.

Add this one line to your functions.php:

add_filter( 'wc_stripe_payment_request_total_label_suffix', '__return_null' );

That’s all it takes!

If you have other nagging woocommerce problems, we encourage you to contact OnSiteWP for a free quote. If it turns out to be an “easy” fix like this one, we can have it solved very affordably within the same day!

Brian Murphy

Author: Brian Murphy

Brian Murphy is co-founder of OnSiteWP, a WordPress website maintenance company. His professional experience of working within enterprise IT, communication departments, startup companies and freelancing provides a unique, well rounded perspective on the issues business owners face.

Facebooktwittergoogle_plusredditpinterestlinkedinmailFacebooktwittergoogle_plusredditpinterestlinkedinmail