mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +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(
|
||||
"#ppcp-vault_enabled, #ppcp-dcc_vault_enabled"
|
||||
"#ppcp-vault_enabled, #ppcp-save-paypal-account"
|
||||
)
|
||||
|
||||
function atLeastOneChecked(checkboxesNodeList) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue