Skip to content

Add vaulting component module boilerplate#4267

Draft
Dinamiko wants to merge 9 commits intodev/PCP-5937-vault-management-component-fifrom
dev/PCP-5965-feature-flag-and-vault-component-module-setup
Draft

Add vaulting component module boilerplate#4267
Dinamiko wants to merge 9 commits intodev/PCP-5937-vault-management-component-fifrom
dev/PCP-5965-feature-flag-and-vault-component-module-setup

Conversation

@Dinamiko
Copy link
Copy Markdown
Collaborator

@Dinamiko Dinamiko commented Apr 8, 2026

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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

🔗 Test this pull request with WordPress Playground

What's included:

  • ✅ WordPress (latest)
  • ✅ WooCommerce (latest)
  • ✅ PayPal Payments plugin v4.0.2-pr4267-24193793726-g83f21e7 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 4.0.2-pr4267-24193793726-g83f21e7
  • Commit: 26c1ccb
  • Artifact: woocommerce-paypal-payments-4.0.2-pr4267-24193793726-g83f21e7

💡 The demo environment resets each time you refresh. Perfect for testing!

🔄 This link updates automatically with each new commit to the PR.

⚠️ This URL is valid for 30 days from when this comment was last updated.


🤖 Auto-generated for commit 26c1ccb • Last updated: 2026-04-09T13:56:45.635Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant