## Retrieve card networks Used in [custom integrations](https://docs.stripe.com/co-badged-cards-compliance?type=custom-integration) to support co-badged card compliance. Stripe-hosted UIs, such as [Checkout](https://docs.stripe.com/payments/checkout), [Payment Links](https://docs.stripe.com/payment-links), and [Elements](https://docs.stripe.com/payments/elements), will automatically display a network selector when you meet the [applicability criteria](https://docs.stripe.com/co-badged-cards-compliance?type=custom-integration#when-regulation-applies), if configured properly. You can migrate to a Stripe-hosted UI to use these features. This method returns a `Promise` which resolves with a result object. This object has a single property, `result.networks`, which will either be `null` or an array of `network` types **Syntax:** `stripe.retrieveCardNetworks(...)` - `rawCardNumber` (string) **required** The card number entered in your card collection form. When passed 8 or more digits of the card number, the method starts returning available networks for the card. In order to pass these card details to Stripe, you must [have access to raw card data APIs](https://support.stripe.com/questions/enabling-access-to-raw-card-data-apis). ### Retrieve card networks ```js stripe .retrieveCardNetworks(rawCardNumber) .then(function(result) { // Handle result.networks }); ``` ```es_next const {networks} = await stripe.retrieveCardNetworks(rawCardNumber); ```