mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix apple/google pay block
This commit is contained in:
parent
9b270e5696
commit
faeee86ab3
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ class BlocksPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $paypal_data['title'], // TODO : see if we should use another.
|
'title' => $paypal_data['title'], // TODO : see if we should use another.
|
||||||
'description' => $paypal_data['description'], // TODO : see if we should use another.
|
'description' => $paypal_data['description'], // TODO : see if we should use another.
|
||||||
'enabled' => $paypal_data['enabled'], // This button is enabled when PayPal buttons are.
|
'enabled' => $paypal_data['smartButtonsEnabled'], // This button is enabled when PayPal buttons are.
|
||||||
'scriptData' => $script_data,
|
'scriptData' => $script_data,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ class BlocksPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $paypal_data['title'], // See if we should use another.
|
'title' => $paypal_data['title'], // See if we should use another.
|
||||||
'description' => $paypal_data['description'], // See if we should use another.
|
'description' => $paypal_data['description'], // See if we should use another.
|
||||||
'enabled' => $paypal_data['enabled'], // This button is enabled when PayPal buttons are.
|
'enabled' => $paypal_data['smartButtonsEnabled'], // This button is enabled when PayPal buttons are.
|
||||||
'scriptData' => $this->button->script_data(),
|
'scriptData' => $this->button->script_data(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue