diff --git a/modules.local/ppcp-button/src/Assets/SmartButton.php b/modules.local/ppcp-button/src/Assets/SmartButton.php index 565610025..9c31fba42 100644 --- a/modules.local/ppcp-button/src/Assets/SmartButton.php +++ b/modules.local/ppcp-button/src/Assets/SmartButton.php @@ -322,9 +322,8 @@ class SmartButton implements SmartButtonInterface } $disableFunding = $this->settings->has('disable_funding') ? $this->settings->get('disable_funding') : []; - if (is_array($disableFunding) && count($disableFunding)) { - $params['disable-funding'] = implode(',', $disableFunding); - } + $disableFunding[] = 'venmo'; + $params['disable-funding'] = implode(',', $disableFunding); $smartButtonUrl = add_query_arg($params, 'https://www.paypal.com/sdk/js'); return $smartButtonUrl; } diff --git a/modules.local/ppcp-wc-gateway/services.php b/modules.local/ppcp-wc-gateway/services.php index ef08d7676..ce3f58a92 100644 --- a/modules.local/ppcp-wc-gateway/services.php +++ b/modules.local/ppcp-wc-gateway/services.php @@ -376,7 +376,6 @@ return [ 'options' => [ 'card' => _x('Credit or debit cards', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'), 'credit' => _x('PayPal Credit', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'), - 'venmo' => _x('Venmo', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'), 'sepa' => _x('SEPA-Lastschrift', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'), 'bancontact' => _x('Bancontact', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'), 'eps' => _x('eps', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),