feat(ecommerce): expose PayPal vaulting as a filterable value and admin UI toggle#1
Draft
Caffe1neAdd1ct with Copilot wants to merge 1 commit into
Draft
feat(ecommerce): expose PayPal vaulting as a filterable value and admin UI toggle#1Caffe1neAdd1ct with Copilot wants to merge 1 commit into
Caffe1neAdd1ct with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
Enhancement: Add filter to safely disable PayPal vaulting
feat(ecommerce): expose PayPal vaulting as a filterable value and admin UI toggle
Jun 19, 2026
Copilot created this pull request from a session on behalf of
Caffe1neAdd1ct
June 19, 2026 17:50
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PaypalConfig::createConfig()hardcodessave_payment_method: truewith no escape hatch. Overriding it requires substituting the config class beforeOllyo\PaymentHubautoloads — a timing constraint that causes fatal errors.Two independent branches address this:
PR Alpha —
copilot/tutor-lms-paypal-vaulting-alphaDeveloper-facing WordPress filter. Single-file change, zero new storage.
Opt-out anywhere after
plugins_loaded:PR Beta —
copilot/tutor-lms-paypal-vaulting-betaAdmin UI toggle; no custom plugin code required.
OptionKeys.php—const PAYPAL_ENABLE_VAULTING = 'tutor_paypal_enable_vaulting'Settings.php— new PayPal Settings block in the Checkout panel with atoggle_switchfield; defaultonpreserves backward compatibilityPaypalConfig.php— reads the saved option via the constant:Both branches are independent (each based off
master) and fully backward-compatible.