Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally display payment methods (4077) #3021

Merged
merged 9 commits into from
Jan 24, 2025

Conversation

Dinamiko
Copy link
Contributor

This PR adds the following conditions to display items in Payment Methods screen:

  • Display BCDC card only when merchant not eligible for ACDC
  • Hide Venmo when store location is not United States
  • Hide Fastlane, Apple Pay, Google Pay Cards if not eligible
  • Hide ACDC in non-ACDC regions → we should show BCDC
  • Hide local APMs in non-ACDC regions

it also adds a new filter to register the standard card button gateway programmatically:

add_filter( 'woocommerce_paypal_payments_enable_standard_card_button_gateway_settings', '__return_true' );

@stracker-phil stracker-phil merged commit f47487d into trunk Jan 24, 2025
6 checks passed
@stracker-phil stracker-phil deleted the PCP-4077-conditionally-display-payment-methods branch January 24, 2025 14:13
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