allow to use CC vaulting with pay later messaging

This commit is contained in:
Kirill Braslavsky 2021-03-25 13:22:09 +02:00
parent 77efce52db
commit 99d4911581
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
)
const vaultingCheckboxes = document.querySelectorAll(
"#ppcp-vault_enabled, #ppcp-dcc_vault_enabled"
"#ppcp-vault_enabled, #ppcp-save-paypal-account"
)
function atLeastOneChecked(checkboxesNodeList) {

View file

@ -129,7 +129,7 @@ class SettingsListener {
if ( ! $this->is_valid_site_request() ) {
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;
}