> ## Documentation Index
> Fetch the complete documentation index at: https://doc-test-my.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Additional Configurations

> Additional configurations available for Razorpay iOS Custom SDK.

This section explains the additional configurations available for Razorpay iOS Custom SDK.

* [Change API Key](/docs/payments/payment-gateway/ios-integration/custom/configurations#change-api-key)
* [Card Utilities](/docs/payments/payment-gateway/ios-integration/custom/configurations#card-utilities)
* [Fetch Logo](/docs/payments/payment-gateway/ios-integration/custom/configurations#fetch-logos)

## Change API Key

Call the following function after the successful SDK initialization and change the API key:

```swift Change API Key theme={null}
razorpay.changeApiKey("rzp_new_key")
```

## Card Utilities

#### Fetch Card Network

The SDK provides a method to get the card network of the card. At least six digits of the card number are required to identify the network. The below method fetches the card network for a card. A minimum of 6 digits is required to identify the network.

```swift Get Card Network theme={null}
razorpay.getCardNetwork(fromCardNumber: "cardNumber")
```

Possible values are:

* `visa`
* `mastercard`

If the method cannot identify the network, it returns `unknown`.

#### Card Number Validation

The entered card number can be validated using the checksum-based method.

```swift Card Number Validation theme={null}
razorpay.isCardValid("cardNumber")
```

#### Fetch Card Number Length for Card Network

Use the below method to fetch the card number's length for a card network:

```swift Fetch Card Number Length for Card Network theme={null}
razorpay.getCardNetworkLength(ofNetwork: "network")
```

## Fetch Logos

#### Fetch Bank Logo URL

Use the below method to fetch the bank logo URL. Here `bankCode` is the code of the bank. This should be available in the response received in the `onPaymentMethodsReceived` callback.

```swift Fetch Bank Logo URL theme={null}
razorpay.getBankLogo(havingBankCode: "bankCode")
```

#### Fetch Wallet Logo URL

Use the below method to fetch the wallet logo URL:

```swift Fetch Wallet Logo URL theme={null}
razorpay.getWalletLogo(havingWalletName: "name")
```

#### Fetch Wallet Square Logo URL

Use the below method to fetch the wallet square image logo URL:

```swift Fetch Wallet Square Logo URL theme={null}
razorpay.getWalletSqLogo(havingWalletName: "name")
```
