stripe-js icon indicating copy to clipboard operation
stripe-js copied to clipboard

[BUG]: retrieveCardNetworks not exist in StripeJS

Open WhySimply opened this issue 1 year ago • 2 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

WhySimply avatar Sep 04 '24 08:09 WhySimply

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.

brendanm-stripe avatar Sep 05 '24 13:09 brendanm-stripe

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

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

Not exist

WhySimply avatar Sep 19 '24 09:09 WhySimply

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[bot] avatar Nov 10 '24 13:11 stale[bot]