Skip to content

Conversation

@danieldudzic
Copy link
Collaborator

@danieldudzic danieldudzic commented Oct 20, 2025

Description

This PR will add the Pay with Crypto as a new payment method.

Screenshot

WooCommerce_settings_‹_WooCommerce_PayPal_Payments_—_WordPress

Key changes include:

  • Register PWC as a new payment method with corresponding gateway, payment method block, and product status classes
  • Add merchant capability checks for the PWC payment method (CRYPTO_PYMTS capability)
  • Implement PWC product status tracking with caching and settings persistence
  • Add filters to allow dynamic modification of the payment methods array throughout the module
  • Include PWC in the merchant features API response
  • Add PWC payment method block registration for the Blocks checkout

Testing

  • Verify PWC payment method appears in the payment methods list for merchants with crypto capability
  • Test that PWC is properly hidden for merchants without the required capability
  • Verify PWC shows up correctly in Classic and Blocks checkout
  • Test that the merchant features API response includes the correct PWC capability status

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

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 v3.2.1-pr3791-18877538729-geeeaad3 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 3.2.1-pr3791-18877538729-geeeaad3
  • Commit: eeeaad3
  • Artifact: woocommerce-paypal-payments-3.2.1-pr3791-18877538729-geeeaad3

💡 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 eeeaad3 • Last updated: 2025-10-28T14:15:38.015Z

@danieldudzic danieldudzic marked this pull request as ready for review October 24, 2025 11:43
@danieldudzic danieldudzic changed the base branch from develop to release/3.3.0 October 28, 2025 12:28
@Dinamiko Dinamiko merged commit cfee8c2 into release/3.3.0 Oct 28, 2025
17 checks passed
@Dinamiko Dinamiko deleted the PCP-5024-pay-with-crypto branch October 28, 2025 14:25
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.

3 participants