KEMBAR78
Add Types for Billing Details in Payment Element Change Event by maxwelly-stripe · Pull Request #770 · stripe/stripe-js · GitHub
Skip to content

Conversation

@maxwelly-stripe
Copy link
Contributor

Summary & motivation

Add Billing Details Type for Payment Element Change Event

Testing & documentation

type: string;
billingDetails?: {
address: {
country?: null | string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering about the undefined vs null compared to the billing_details definition below...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values can definitely be undefined since we will deliberately not be showing postalCode for countries where the postal code input is not rendering, which is different than how payment_method is doing it where they're defaulting to null

@maxwelly-stripe maxwelly-stripe merged commit 628a6e7 into master Jul 11, 2025
2 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