Additional Configurations
Additional configurations available for Razorpay iOS Custom SDK.
This section explains the additional configurations available for Razorpay iOS Custom SDK.
Call the following function after the successful SDK initialization and change the API key:
razorpay.changeApiKey("rzp_new_key")
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.
razorpay.getCardNetwork(fromCardNumber: "cardNumber")
Possible values are:
visamastercardamexunionpay
If the method cannot identify the network, it returns unknown.
The entered card number can be validated using the checksum-based method.
razorpay.isCardValid("cardNumber")
Use the below method to fetch the card number's length for a card network:
razorpay.getCardNetworkLength(ofNetwork: "network")
Is this integration guide useful?
ON THIS PAGE