Fetch Payment Methods
Use the Fetch Payment Methods API to fetch the payment methods available for your account. Below are the sample payloads for each payment method. Given below are the sample codes for fetching netbanking and UPI payment methods.Netbanking
For netbanking payments, specify themethod as netbanking.
JavaScript
UPI
For UPI payments, specify themethod as upi.
JavaScript
Card Utilities
You can use these methods for card payment method integration.Fetch Card Network
The SDK provides a method to get the card network name of the card number.- At least 6 digits of the card number are required to identify the network.
-
Possible values returned by this method are
visa,mastercard,maestro16,amex,rupay,maestro,dinersandunknown. -
If it cannot identify the network, it returns
unknown.
JavaScript
Card Number Validation
The SDK provides a checksum-based method to determine if the entered card number is valid or not.JavaScript
Fetch Card Number Length for Card Network
The SDK provides a method to get the card number length for a specific card network.JavaScript
Validate VPA
The SDK provides a method to determine if the entered Virtual Payment Address (VPA) is valid or not. A failure response is triggered when thevpaAddress is empty or the device is not connected to data to make the validation.
JavaScript
Logo
Given below are the sample codes for fetching various payment method logo URLs.Fetch Bank Logo URL
The SDK provides a method to fetch the bank logo’s URL here,bankCode is the bank’s code; you will be able to get it from the response received in onPaymentMethodsReceived callback.
JavaScript
Fetch Wallet Logo URL
The SDK provides a method to get the wallet logo’s URL.JavaScript
Fetch Wallet Square Logo URL
The SDK provides a method to get the wallet’s square-shaped logo’s URL.JavaScript
CRED
The SDK provides a method to determine if the CRED app is installed on the customer’s mobile device.JavaScript