Skip to content

Fix CustomerSheetLoader to return filtered payment methods.#13020

Merged
jaynewstrom-stripe merged 2 commits into
masterfrom
jaynewstrom/fix-supported-payment-methods-filter
May 5, 2026
Merged

Fix CustomerSheetLoader to return filtered payment methods.#13020
jaynewstrom-stripe merged 2 commits into
masterfrom
jaynewstrom/fix-supported-payment-methods-filter

Conversation

@jaynewstrom-stripe

@jaynewstrom-stripe jaynewstrom-stripe commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixed a bug in CustomerSheetLoader where unfiltered payment methods were being returned instead of the filtered valid ones.

Originally introduced here: https://github.com/stripe/stripe-android/pull/12752/changes#diff-7e1c4fa61c4e70690ef87fb3dfdb252c9c074d31d29d1040f31030a10a864489R221

Motivation

The CustomerSheetLoader was incorrectly returning supportedPaymentMethods instead of validSupportedPaymentMethods, which meant that unsupported payment method types (like SEPA debit and Klarna) were not being filtered out properly. This could cause issues when CustomerSheet tries to display payment methods that aren't actually supported.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

[Fixed] CustomerSheet now correctly filters out unsupported payment method types.

@jaynewstrom-stripe jaynewstrom-stripe marked this pull request as ready for review May 5, 2026 11:54
@jaynewstrom-stripe jaynewstrom-stripe requested review from a team as code owners May 5, 2026 11:54
@amk-stripe

Copy link
Copy Markdown
Collaborator

Yikes, thanks for finding and fixing this!

@jaynewstrom-stripe jaynewstrom-stripe merged commit ac8a8e6 into master May 5, 2026
19 checks passed
@jaynewstrom-stripe jaynewstrom-stripe deleted the jaynewstrom/fix-supported-payment-methods-filter branch May 5, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants