mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove vault conditional when adding venmo to enable funding
This commit is contained in:
parent
3281c61394
commit
bdd9bb7636
1 changed files with 1 additions and 3 deletions
|
@ -754,9 +754,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
$params['disable-funding'] = implode( ',', array_unique( $disable_funding ) );
|
||||
}
|
||||
|
||||
if ( ! $this->settings->has( 'vault_enabled' ) || ! $this->settings->get( 'vault_enabled' ) ) {
|
||||
$params['enable-funding'] = 'venmo';
|
||||
}
|
||||
$params['enable-funding'] = 'venmo';
|
||||
|
||||
$smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' );
|
||||
return $smart_button_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue