mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Disable gateways only for non PayPal funding sources
This commit is contained in:
parent
f256134148
commit
f11f151e65
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class DisableGateways {
|
|||
*/
|
||||
private function needs_to_disable_gateways(): bool {
|
||||
$wc_ajax = filter_input( INPUT_GET, 'wc-ajax', FILTER_SANITIZE_STRING ) ?? '';
|
||||
if ( $wc_ajax === 'update_order_review' ) {
|
||||
if ( $wc_ajax === 'update_order_review' && $this->session_handler->funding_source() !== 'paypal' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue