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]: Missing {card: { network: string[]; }; } is not assignable to type DefaultValuesOption #627

Closed
1 task done
Smoggert opened this issue Jul 4, 2024 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@Smoggert
Copy link

Smoggert commented Jul 4, 2024

What happened?

Version: @stripe/stripe-js 4.1.0
Others: @stripe/react-stripe-js 2.7.3

We are urged to implement a card-selector for the dual cartes_bancaires - visa/mastercard option in France.

I am following the docs to do so but am running into a typing error when trying to set the default value for one of these cards in the options for the stripe payment element.

Related documentation:
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-card

Environment

No response

Reproduction

No response

Tasks

Preview Give feedback
  1. stale
@Smoggert Smoggert added the bug Something isn't working label Jul 4, 2024
Copy link

stale bot commented Aug 1, 2024

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 Aug 1, 2024
@brendanm-stripe
Copy link
Contributor

Hey there -- looking to get this corrected, but in the interim please use ts-ignore.

@alexoser-stripe
Copy link
Contributor

@Smoggert thanks for the report, this has been updated in 4.4.0.

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

No branches or pull requests

3 participants