Skip to content

[breaking] Remove createSource and retrieveSource types#892

Merged
alic-stripe merged 1 commit into
masterfrom
breaking/dahlia-remove-source-types
Mar 18, 2026
Merged

[breaking] Remove createSource and retrieveSource types#892
alic-stripe merged 1 commit into
masterfrom
breaking/dahlia-remove-source-types

Conversation

@alic-stripe
Copy link
Copy Markdown
Contributor

Summary & motivation

Remove the createSource and retrieveSource method types from the Stripe interface

These methods are deprecated in favor of stripe.createPaymentMethod and the Payment Element.

Testing & documentation

Remove the createSource and retrieveSource method types from the Stripe
interface for the Dahlia release (2026-03-25). These methods are being
deprecated in favor of stripe.createPaymentMethod and the Payment Element.

- Remove createSource (two overloads) and retrieveSource from stripe.d.ts
- Remove SourceResult type from stripe.d.ts
- Remove CreateSourceData, RetrieveSourceParam from token-and-sources.d.ts
- Remove valid type tests for createSource and retrieveSource
- Add @ts-expect-error negative type tests in invalid.ts
- Clean up unused imports (StripeElement, SourceCreateParams)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@alic-stripe alic-stripe merged commit d28fb1b into master Mar 18, 2026
5 checks passed
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.

2 participants