Add vaulting component module boilerplate#4267
Draft
Dinamiko wants to merge 9 commits intodev/PCP-5937-vault-management-component-fifrom
Draft
Add vaulting component module boilerplate#4267Dinamiko wants to merge 9 commits intodev/PCP-5937-vault-management-component-fifrom
Dinamiko wants to merge 9 commits intodev/PCP-5937-vault-management-component-fifrom
Conversation
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. 🔗 Test this pull request with WordPress Playground What's included:
Login credentials:
Plugin Details:
🤖 Auto-generated for commit 26c1ccb • Last updated: 2026-04-09T13:56:45.635Z |
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.
This PR introduces a feature flag (
PCP_VAULT_COMPONENT_ENABLED) that gates the entire Vault Component functionality.When disabled (default), checkout behaves exactly as today. When enabled, the plugin loads the Vault Component module and evaluates customer eligibility (logged in, has saved PayPal token, vault capability active, US region for alpha). This also includes passing the necessary vault data (token ID, eligibility) to the frontend JavaScript for both classic and block checkout.