-
Notifications
You must be signed in to change notification settings - Fork 301
Add Tax ID Element Types #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the JS Doc comments
src/types/index.ts
Outdated
onLoadError?: (event: {elementType: 'address'; error: StripeError}) => any; | ||
|
||
/** | ||
* Triggered when the [loader](https://stripe.com/docs/js/elements_object/create#stripe_elements-options-loader) UI is mounted to the DOM and ready to be displayed. | ||
*/ | ||
onLoaderStart?: (event: {elementType: 'address'}) => any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these elementTypes be taxId
?
src/types/index.ts
Outdated
onChange?: (event: stripeJs.StripeAddressElementChangeEvent) => any; | ||
|
||
/** | ||
* Triggered when the Element is fully rendered and can accept imperative `element.focus()` calls. | ||
*/ | ||
onReady?: (element: stripeJs.StripeAddressElement) => any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with these event/element types
Summary & motivation
API review
Copy this template or link to an API review issue.
API Review
Testing & documentation