stripe/stripe-js

[BUG]: retrieveCardNetworks not exist in StripeJS

WhySimply opened this issue · 3 comments

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

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.

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

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

Not exist