Skip to content

Use Nil as Default Value for Link Supported Payment Methods#6349

Open
jkelle-stripe wants to merge 1 commit intomasterfrom
jkelle/filtered-supported-payment-methods
Open

Use Nil as Default Value for Link Supported Payment Methods#6349
jkelle-stripe wants to merge 1 commit intomasterfrom
jkelle/filtered-supported-payment-methods

Conversation

@jkelle-stripe
Copy link
Copy Markdown
Contributor

@jkelle-stripe jkelle-stripe commented Apr 16, 2026

Summary

Modifies the default value of supportedPaymentMethodTypes

Motivation

In #5309, we introduced parametric filtering of supported payment methods. We used a default value of allCases, which works for our current feature set. However, in #6342, we'll want to remove the intersection on these filtered payment methods if non are provided to allow for unknown PMs to be included in the list. In this PR, we'll keep the same intersection functionality of all cases, but modify the piping of these values to use nil instead of allCases as the default value. In #6342, we remove the allCases intersection entirely if nil filtered payment methods are passed in.

Demos

Test Harness MPE
test.harness.mov
mpe.mov

@jkelle-stripe jkelle-stripe marked this pull request as ready for review April 16, 2026 14:48
@jkelle-stripe jkelle-stripe requested review from a team as code owners April 16, 2026 14:49
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