Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/cli/src/commands/payment-methods/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const PaymentMethodsList: React.FC<PaymentMethodsListProps> = ({
<Box flexDirection="column" marginTop={1}>
{methods.map((pm) => {
const label =
pm.name ??
pm.card_details?.brand ??
pm.bank_account_details?.bank_name ??
'Bank account';
Expand Down
24 changes: 22 additions & 2 deletions packages/sdk/src/resources/__tests__/payment-methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ describe('PaymentMethodsResource', () => {
exp_month: 12,
exp_year: 2028,
},
name: 'Visa Credit',
nickname: 'Home Credit',
},
],
});
Expand All @@ -60,6 +62,8 @@ describe('PaymentMethodsResource', () => {
exp_month: 12,
exp_year: 2028,
},
name: 'Visa Credit',
nickname: 'Home Credit',
},
]);
});
Expand Down Expand Up @@ -107,7 +111,15 @@ describe('PaymentMethodsResource', () => {
logger: { debug },
});
mockFetchResponse(200, {
payment_details: [{ id: 'pm_secret', type: 'card', is_default: true }],
payment_details: [
{
id: 'pm_secret',
type: 'card',
is_default: true,
name: 'Visa Credit',
nickname: 'Home Credit',
},
],
});

await repo.list();
Expand All @@ -119,7 +131,15 @@ describe('PaymentMethodsResource', () => {

it('rejects malformed successful responses', async () => {
mockFetchResponse(200, {
payment_details: [{ id: 123, type: 'card', is_default: true }],
payment_details: [
{
id: 123,
type: 'card',
is_default: true,
name: 'Visa Credit',
nickname: 'Home Credit',
},
],
});

const error = await repo.list().catch((cause) => cause);
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/src/resources/payment-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const paymentMethodSchema = z.looseObject({
id: z.string(),
type: z.string(),
is_default: z.boolean(),
name: z.string(),
nickname: z.optional(z.string().nullable()),
});
const paymentMethodsResponseSchema = z.looseObject({
payment_details: z.array(paymentMethodSchema),
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export interface PaymentMethod {
id: string;
type: string;
is_default: boolean;
name: string;
nickname?: string;
card_details?: CardDetails;
bank_account_details?: BankAccountDetails;
Expand Down
2 changes: 1 addition & 1 deletion plugins/cursor-link/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "link",
"displayName": "Link",
"version": "0.15.0",
"version": "0.15.1",
"description": "Complete purchases with one-time-use payment credentials from a Link wallet, using spend requests the user has approved.",
"author": {
"name": "Stripe"
Expand Down
2 changes: 1 addition & 1 deletion plugins/link/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "link",
"version": "0.15.0",
"version": "0.15.1",
"description": "Authenticate with Link, create spend requests, and retrieve one-time-use card or shared payment token credentials for user-approved purchases.",
"author": {
"name": "Stripe"
Expand Down
2 changes: 1 addition & 1 deletion plugins/link/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "link",
"version": "0.15.0",
"version": "0.15.1",
"description": "Secure, one-time-use payment credentials from Link",
"author": {
"name": "Stripe",
Expand Down
2 changes: 1 addition & 1 deletion skills/create-payment-credential/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.15.0
version: 0.15.1
name: create-payment-credential
description: |
Gets secure, one-time-use payment credentials (cards, tokens) from a Link wallet so agents can complete purchases on behalf of users. Use when the user says "get me a card", "buy something", "pay for X", "make a purchase", "I need to pay", "complete checkout", or asks to transact on any merchant site. Use when the user asks to connect or log in to or sign up for their Link account.
Expand Down
2 changes: 1 addition & 1 deletion skills/financial-insights/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.15.0
version: 0.15.1
name: financial-insights
description: |
Reads a user's Link financial data — transactions, balances, and wallet sources — so agents can answer questions about spending and available source capabilities. Use when the user says "check my balance", "how much did I spend", "show my transactions", "what accounts are connected", "summarize my spending", "recent purchases", or asks about their financial activity, account balances, or linked sources.
Expand Down
Loading