Skip to content
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

[BUG]: automatic_async does not exist in captureMethod of StripeElementsUpdateOptions #677

Closed
hir0o opened this issue Nov 8, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@hir0o
Copy link

hir0o commented Nov 8, 2024

What happened?

captureMethod can be 'manual', 'automatic', or 'automatic_async', but only 'manual' and 'automatic' exist.

https://github.com/stripe/stripe-js/blob/master/types/stripe-js/elements-group.d.ts#L722

Environment

No response

Reproduction

No response

@hir0o hir0o added the bug Something isn't working label Nov 8, 2024
@brendanm-stripe
Copy link
Contributor

Hey there, you're quite right the type is missing an option and I've reported this to the Elements team to extend the type.

In the meantime, the actual value is supported and works as expected, so you can use that and temporarily use ts-ignore or ts-expect-error in the interim.

Copy link

stale bot commented Jan 3, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 3, 2025
@stale stale bot closed this as completed Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants