mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Revert vault enabled check in render wrapper
This commit is contained in:
parent
96d154a856
commit
a8ccd02e77
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,10 @@ class SmartButton implements SmartButtonInterface {
|
|||
*/
|
||||
public function render_wrapper(): bool {
|
||||
|
||||
if ( ! $this->can_save_vault_token() && $this->has_subscriptions() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $this->settings->has( 'enabled' ) && $this->settings->get( 'enabled' ) ) {
|
||||
$this->render_button_wrapper_registrar();
|
||||
$this->render_message_wrapper_registrar();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue