Skip to main content

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 the method as netbanking.
JavaScript

UPI

For UPI payments, specify the method as upi.
JavaScript
The SDK supports two flows:
  1. Intent
  2. Collect
UPI Collect Flow DeprecatedAccording to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers.Exemptions: UPI Collect will continue to be supported for:
  • MCC 6012 & 6211 (IPO and secondary market transactions).
  • iOS mobile app and mobile web transactions.
  • UPI Mandates (execute/modify/revoke operations only)
  • eRupi vouchers.
  • PACB businesses (cross-border/international payments).
Action Required:
  • If you are a new Razorpay user, use UPI Intent.
  • If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the migration documentation.

Intent Flow

Follow the steps given below to use UPI Intent flow in Razorpay’s React Native Custom UI plugin:
  1. Call getAppsWhichSupportUPI function to get all the available apps in customer’s device.
    JavaScript
  2. Ensure that the upi_app_package_name is passed from the getSupportedUPIApps() method value otherwise, it will not pass the validation.
    JavaScript
  3. Your iOS app must seek permission from the device to open the UPI PSP app that the customer selects on the Checkout. For this, you must make the following changes in your iOS app’s info.plist file.
    XML
Check the complete list of UPI supported apps and their package names.

Collect Flow

In Collect Flow, the collect request is sent to the UPI app for the specified vpa.

Sample Code

The sample code below sends a collect request to gauravkumar@exampleupi handle.
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, diners and unknown.
  • 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 the vpaAddress is empty or the device is not connected to data to make the validation.
JavaScript
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