Haoxuanxu/add list payment methods route - #343
Merged
Merged
Conversation
haoxuanxu-stripe
force-pushed
the
haoxuanxu/add-list-payment-methods-route
branch
3 times, most recently
from
September 22, 2026 01:03
3374d85 to
2698393
Compare
Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
haoxuanxu-stripe
force-pushed
the
haoxuanxu/add-list-payment-methods-route
branch
from
September 22, 2026 14:35
2698393 to
b2b389f
Compare
sylwang-stripe
approved these changes
Sep 22, 2026
haoxuanxu-stripe
deleted the
haoxuanxu/add-list-payment-methods-route
branch
September 22, 2026 14:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add support for Link balance amounts returned by the payment-details list API.
balance_details.available_balancein@stripe/link-sdkLink balance $12.50 available****undefinedwhen a payment method has no card or bank-account details@stripe/link-cliand@stripe/link-sdkResponse example
{ "id": "csmrpd_balance", "type": "BALANCE", "name": "Link balance", "is_default": false, "card_details": null, "bank_account_details": null, "balance_details": { "available_balance": { "amount": 1250, "currency": "usd" } } }CLI output:
csmrpd_balance Link balance $12.50 available
Motivation
The payment-details list can include a Link balance alongside cards and bank accounts. Previously, the SDK did not model its balance details and the interactive CLI assumed every
payment method had a last-four value, resulting in ****undefined.
Test plan
Rollout/revert plan
Client-only additive change with no migration required. Safe to revert.