stripe / stripe-js

Loading wrapper for Stripe.js
https://stripe.com/docs/js
MIT License
629 stars 155 forks source link

[BUG]: retrieveCardNetworks not exist in StripeJS #643

Open WhySimply opened 2 months ago

WhySimply commented 2 months ago

What happened?

Hey !

We tried to implement the network selector for adding a credit card in custom mode, however we never find retrieveCardNetworks in the lib, even in its latest version 4.4.0 and even using ts-ignore, it It seems that the method does not exist at all in the lib, is this possible?

Environment

No response

Reproduction

No response

brendanm-stripe commented 2 months ago

Can you clarify what you're asking with a snippet of code or other appropriate reproduction steps?

Note that this library does not define/provide any of the actual Stripe.js functionality, it only acts as a convenience loading wrapper exposed via loadStripe and complementary type definitions. The actual Stripe.js asset that gets loaded is evergreen and you always get the latest version.

WhySimply commented 1 month ago

Capture d’écran 2024-09-19 à 11 24 13

"const {networks} = await stripe.retrieveCardNetworks(rawCardNumber)"

Not exist