mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
allow to use CC vaulting with pay later messaging
This commit is contained in:
parent
77efce52db
commit
99d4911581
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
const vaultingCheckboxes = document.querySelectorAll(
|
const vaultingCheckboxes = document.querySelectorAll(
|
||||||
"#ppcp-vault_enabled, #ppcp-dcc_vault_enabled"
|
"#ppcp-vault_enabled, #ppcp-save-paypal-account"
|
||||||
)
|
)
|
||||||
|
|
||||||
function atLeastOneChecked(checkboxesNodeList) {
|
function atLeastOneChecked(checkboxesNodeList) {
|
||||||
|
|
|
@ -129,7 +129,7 @@ class SettingsListener {
|
||||||
if ( ! $this->is_valid_site_request() ) {
|
if ( ! $this->is_valid_site_request() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( ! isset( $_POST['ppcp']['vault_enabled'] ) && ! isset( $_POST['ppcp']['save_paypal_account'] ) && ! isset( $_POST['ppcp']['dcc_vault_enabled'] ) && ! isset( $_POST['ppcp']['dcc_save_card'] ) ) {
|
if ( ! isset( $_POST['ppcp']['vault_enabled'] ) && ! isset( $_POST['ppcp']['save_paypal_account'] ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue