mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge remote-tracking branch 'origin/trunk' into modularity-module-migration
# Conflicts: # modules/ppcp-admin-notices/src/AdminNotices.php # modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php # modules/ppcp-wc-gateway/src/WCGatewayModule.php # modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php # tests/PHPUnit/WcSubscriptions/RenewalHandlerTest.php
This commit is contained in:
commit
392d27f08b
163 changed files with 13687 additions and 1746 deletions
|
@ -359,6 +359,20 @@ document.addEventListener(
|
|||
);
|
||||
}
|
||||
|
||||
const referenceTransactionsCheck = () => {
|
||||
if (
|
||||
typeof PayPalCommerceGatewaySettings !== 'undefined'
|
||||
&& PayPalCommerceGatewaySettings.reference_transaction_enabled !== '1'
|
||||
) {
|
||||
document.getElementById('ppcp-vault_enabled')?.setAttribute('disabled', 'disabled');
|
||||
|
||||
const description = document.getElementById('field-vault_enabled')?.getElementsByClassName('description')[0];
|
||||
if (description) {
|
||||
description.innerHTML = PayPalCommerceGatewaySettings.vaulting_must_enable_advanced_wallet_message;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(() => {
|
||||
removeDisabledCardIcons('select[name="ppcp[disable_cards][]"]', 'select[name="ppcp[card_icons][]"]');
|
||||
|
||||
|
@ -408,6 +422,8 @@ document.addEventListener(
|
|||
);
|
||||
|
||||
togglePayLaterMessageFields();
|
||||
|
||||
referenceTransactionsCheck()
|
||||
})();
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue