diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index e602be7f6..2b441c890 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -730,9 +730,9 @@ class SmartButton implements SmartButtonInterface { $disable_funding[] = 'card'; } - if ( count( $disable_funding ) > 0 ) { - $params['disable-funding'] = implode( ',', array_unique( $disable_funding ) ); - } + if ( count( $disable_funding ) > 0 ) { + $params['disable-funding'] = implode( ',', array_unique( $disable_funding ) ); + } $smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' ); return $smart_button_url;