The dreaded multiple enabled payment gateways
-
Hey all
Firstly, is there a simple fix for this? as for me, turning off all caching etc… does NOT work.
Secondly, i have 25+ clients using this gateway screaming at me when i am on vacation and trying to relay the issue to my team.
Thirdly, i have trustly orders ON HOLD for clients totalling £15k+ as clients do not have them setup in their PayPal account.
Fourthly, forgive me if i am missing a patch/fix, but WTAF…!
Fifthly, i am getting bored of Admin emails now telling me a payment gateway has been enabled…!And final rant…
Try this temp MU Plugin done while holding my Long Island Iced Tea…!Outta here…
<?php
/*
Plugin Name: Disable PayPal APMs
Description: Hard blocks unwanted PayPal alternative payment methods.
Author: Slick (T.O)
*/
add_filter('woocommerce_available_payment_gateways', function ($gateways) {
if (is_admin() && !defined('DOING_AJAX')) {
return $gateways;
}
$blocked = [
'ppcp-bancontact',
'ppcp-blik',
'ppcp-eps',
'ppcp-ideal',
'ppcp-mybank',
'ppcp-p24',
'ppcp-trustly',
'ppcp-multibanco',
];
foreach ($blocked as $gateway_id) {
unset($gateways[$gateway_id]);
}
return $gateways;
}, 999);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.