Skip to main content
This section explains the additional configurations available for Razorpay iOS Custom SDK.

Change API Key

Call the following function after the successful SDK initialization and change the API key:
Change API 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.
Get Card Network
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.
Card Number Validation

Fetch Card Number Length for Card Network

Use the below method to fetch the card number’s length for a card network:
Fetch Card Number Length for Card 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.
Fetch Bank Logo URL

Fetch Wallet Logo URL

Use the below method to fetch the wallet logo URL:
Fetch Wallet Logo URL

Fetch Wallet Square Logo URL

Use the below method to fetch the wallet square image logo URL:
Fetch Wallet Square Logo URL