aleebraccia
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Remove (via WooCommerce) from Apple PayIt works!
Thank you, Matt.
Yes, it’s changed.
Now you need to filter “wc_stripe_payment_request_total_label_suffix”.
I tried, but it works only on “Processing” process, non after AJAX data load.
Hello @tjfishsr,
The file linked on Github is line 302 of class-wc-stripe-apple-pay.php inside wp-content/plug-ins/woocommerce-gateway-stripe/includes.
If you find the right way to remove “via Woocommerce” label, please write here the solution (I’ve not found it yet).
Thanks,
Alessio
I think that I don’t understand how to use filters.
I tried like this but still not working.
function changeApplePay($stripe_params){ $stripe_params['label'] = get_bloginfo('name'); return $stripe_params; } add_filter('wc_stripe_apple_pay_single_params', 'changeApplePay');Thanks,
Alessio- This reply was modified 8 years, 8 months ago by aleebraccia.
I’m sorry but I don’t understand how to do with add_filter. I know how to use add_filter with simple functions, no with classes.
Please, can you explain me how?Thanks in advance,
Alessio