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]: Property 'on' does not exist on type 'StripeIssuingCardNumberDisplayElement' — but it does work #418

Closed
tedpower opened this issue Feb 2, 2023 · 0 comments · Fixed by #419
Labels
bug Something isn't working

Comments

@tedpower
Copy link

tedpower commented Feb 2, 2023

What happened?

Our use case is waiting for a 'ready' event when a card number is loaded before displaying a copy button to copy the card number (this is a part of Stripe BaaS / issuing). The super helpful team at Stripe suggested we do something like:

number.on("ready", () => {
  console.log("we're ready");
});

This works, but it triggers the type error above. If I'm not mistaken, I think this could just be a situation where the types need to be updated for issuingCardNumberDisplay elements.

Environment

No response

Reproduction

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant