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.
Show payment methods available in the PMC on settings page #4252
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
Show payment methods available in the PMC on settings page #4252
Changes from 16 commits
4dc5a76
9c95977
7d19a5a
e691516
c945bec
bd79e91
2d1c6cd
987d11f
b095438
5a3b24c
76f3398
df468d2
bdcfae0
d1d0655
eadd2e6
91fc00a
a238905
05481fe
9ed996c
b31f59e
e77520b
d1453bf
51e1cc3
236025d
ec4e43d
fc0e7b2
9e37a75
f632a30
e046a3b
72ce5c2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change intentionally part of this PR? I just want to make sure, because it's a minor thing that could have unexpected consequences!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is intentional. Initially, I changed it to fix some tests. But looking into it deeper, I found that
sepa_debit
is the right attribute to use here. This array was changed from a plain array to an associative array in this PR #4152. What I missed during the review isWC_Stripe_Payment_Methods::SEPA
is associated withWC_Stripe_UPE_Payment_Method_Sepa::class
. But if you check the WC_Stripe_UPE_Payment_Method_Sepa class notice that the payment method ID isWC_Stripe_Payment_Methods::SEPA_DEBIT
. SoWC_Stripe_Payment_Methods::SEPA_DEBIT
should be safe and the correct attribute.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. I wasn't sure whether it should be included in this PR or pushed into its own PR, as it's technically its own fix that may be worth documenting.