> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.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.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

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

* [Change API Key](/docs/sg/payments/payment-gateway/ios-integration/custom/configurations#change-api-key)
* [Card Utilities](/docs/sg/payments/payment-gateway/ios-integration/custom/configurations#card-utilities)
* [Fetch Logo](/docs/sg/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`
* `amex`
* `unionpay`

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")
```
