Skip to content

Insonsistent PayPal button behavior for subscriptions on cart (6639 v2)#4554

Merged
stracker-phil merged 2 commits into
dev/release/4.1.2from
dev/PCP-6639-v2-insonsistent-pay-pal-button-behavior-for-subscriptions-on-cart
Jul 24, 2026
Merged

Insonsistent PayPal button behavior for subscriptions on cart (6639 v2)#4554
stracker-phil merged 2 commits into
dev/release/4.1.2from
dev/PCP-6639-v2-insonsistent-pay-pal-button-behavior-for-subscriptions-on-cart

Conversation

@Dinamiko

Copy link
Copy Markdown
Collaborator

On block cart/checkout, a free-trial sub + a paying sub hid the PayPal button and payment method (classic worked). Cause: 2+ subscriptions make WooCommerce require the multiple_subscriptions feature, but the block only declared ['products','subscriptions'], so Blocks filtered PayPal out.

This PR passes the gateway's real supported features from PHP (PayPalPaymentMethod.php → supportedFeatures) and have checkout-block.js declare those instead of a hardcoded list, so multiple_subscriptions is included.

@github-actions

Copy link
Copy Markdown

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.1.2-pr4554-30085319265-gdd20169 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 4.1.2-pr4554-30085319265-gdd20169
  • Commit: 72507f9
  • Artifact: woocommerce-paypal-payments-4.1.2-pr4554-30085319265-gdd20169

💡 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 72507f9 • Last updated: 2026-07-24T10:12:05.804Z

@stracker-phil stracker-phil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresses two issues:

  • Fix the PayPal button appearance depending on subscription support
  • Keep the mini cart in sync with block data via a new Redux subscriber

Both changes look solid 👍

@stracker-phil
stracker-phil merged commit a072614 into dev/release/4.1.2 Jul 24, 2026
13 checks passed
@stracker-phil
stracker-phil deleted the dev/PCP-6639-v2-insonsistent-pay-pal-button-behavior-for-subscriptions-on-cart branch July 24, 2026 17:40
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.

2 participants