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.

Debit and Credit Card

Add the following code where you want to initiate a card payment:
ViewController.swift
Check the list of supported cards.

Bank Transfer

This payment method allows you to display your Customer Identifier details on checkout. Your customers can make online bank transfers to this account.
Feature RequestThis is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.to get this feature activated on your account.There are no specific request parameters to be passed. Instead, you must pass the fetchVirtualAccount method for your Customer Identifier to get created and the details to appear on the checkout. Know more about integrating bank transfer with Custom Checkout.to get this feature activated on your account.There are no specific request parameters to be passed. Instead, you must pass the fetchVirtualAccount method for your Customer Identifier to get created and the details to appear on the checkout. Know more about integrating bank transfer with Custom Checkout.

EMI on Debit and Credit Cards

Add the following code where you want to initiate an EMI payment:
ViewController.swift
Check the list of supported debit card and credit card EMI providers.

Cardless EMI

Add the following code where you want to initiate a cardless EMI payment:
ViewController.swift
Check the list of supported cardless EMI providers.

Netbanking

Add the following code where you want to initiate a netbanking payment:
ViewController.swift
Check the list of supported banks.

Pay Later

Add the following code where you want to initiate a Pay Later payment:
ViewController.swift
Check the list of Pay Later providers.

Wallet

Add the following code where you want to initiate a wallet payment:
ViewController.swift

UPI

Specify upi the method parameter for UPI payments. The SDK supports two flows:
  • Collect
  • Intent

Collect Flow

Customers enter their vpa or phone number on your UI and complete the payments on their respective UPI apps in collect flow. You can now pass the vpa parameter in the upi array as shown below.
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.

Sample Code

The sample code below sends a collect request to the gaurav.kumar@exampleupi handle:
ViewController.swift

UPI Payments Using Phone Number

You can accept UPI payments using phone number for the collect flow. Follow the steps given below:
  1. You must collect the customer’s phone number from your end.
  2. Check if any vpa is associated with the given number and get the vpa_token for that number using the sample code given below:
    ViewController.swift
  3. Pass the vpa_token parameter in the upi array as shown below:
    ViewController.swift

Intent Flow

Provide your customers with a better payment experience by enabling UPI Intent on your app’s Checkout form. In the UPI Intent flow:
1

Step 1

You have to fetch the list of UPI supported apps and show it in your app so that the customer can see only valid apps.
2

Step 2

After the customer selects the app, you have to pass the app name in options, with the key upi_app_package_name value. Possible values for upi_app_package_name are:
  • google_pay
  • phonepe
  • paytm
  • cred
3

Step 3

The customer enters their UPI PIN to complete the transaction.
4

Step 4

The customer returns to your app manually without redirection.

Step 1: Update the info.plist File

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 to your iOS app’s info.plist file:
info.plist

Step 2: Get a List of UPI Supported Apps

This sample code fetches the list of apps on the customer’s device that support UPI payments.
ViewController.swift
The sample code below invokes the UPI intent where the user can select the desired application. Ensure that the upi_app_package_name is passed from the getAppsWhichSupportUpi() method value. Otherwise, it will not pass the validation.
ViewController.swift

UPI Intent on Recurring Payments

Configure and initiate a recurring payment transaction on UPI Intent:
ViewController.swift

Turbo UPI

Make UPI payments a faster, 2-step experience for your customers with Razorpay’s Turbo UPI SDK.
  1. Turbo UPI Headless Integration
  2. Turbo UPI UI Integration
Know more about the Customer Onboarding and Integration Steps.

CRED

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.
Customers can make payments on your iOS app using their CRED Coins as well as the credit cards saved on CRED. The SDK supports two flows:
  1. Collect
  2. Intent
IMPHandy TipsEnsure you have integrated with Razorpay iOS SDK version 1.3.5 or higher.

Prerequisites

For both collect and intent flow, you need to pass the app_offer parameter in the Orders API./orders
Curl

Request Parameters

amount mandatory : integer The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of ₹299.35, the value of this field should be 29935.currency mandatory : string The currency in which the transaction should be made. See the list of supported currencies. Default is INR.app_offer optional : boolean Allow/do not allow customers to use CRED coins to make payments. This is used to prevent double discounting scenarios where customers have already availed discounts using voucher/coupon, and you do not want them to redeem Coins as well. Possible values:
  • true: Customer not allowed to use CRED coins to make payment.
  • false (default): Customer can use CRED coins to make payment.
receipt optional : string Your receipt id for this order should be passed here. Maximum length is 40 characters.notes optional : object Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.

Collect Flow

In the Collect Flow, the SDK sends a push notification to the contact number passed in the create request. To initiate collect flow, send app_present the parameter as 0 while creating the payment.
ViewController.swift

Request Parameters

Along with the other payment creation request parameters, you must pass:method mandatory : string The method used to make the payment. Here, it must be app.provider mandatory if method=app : string Name of the PSP app. Here, it must be cred.app_present mandatory if app=cred : integer Sets the payment flow as collect. Possible values:
  • 1: Opens the CRED app on the customer’s device.
  • 0 (default): Sends a push notification to the customer’s device.

Intent Flow

In Intent Flow, the SDK invokes an intent, which is handled by the Cred app installed on the iOS device. Follow these steps:

Step 1: Update the info.plist File

You must make the following changes to your iOS app’s info.plist file:
info.plist

Step 2: Detect CRED App in Customer’s Mobile

  • Check if the CRED app is present on the customer’s mobile using the isCredAppAvailable() method.
    ViewController.swift
  • CRED app listens to the URI Schema.
    This can be passed in the uriSchema parameter in the above function. isCredAppAvailable() returns a boolean value informing whether the app is present on the device or not.
    ViewController.swift
  • If the CRED app is installed, pass the callback_url parameter in the payload:
    ViewController.swift
Handy TipsThe redirect happens from the CRED app based on the URL scheme passed in the payload. If not passed, the app will not redirect.

Listen to CRED Callback

Listen to CRED callback in the AppDelegate class by implementing the open url method. Handle the success response.
ViewController.swift

Register for Notification

Register for notification in CustomWebVC using the code sample given below:
ViewController.swift
Use the code given below to handle payment data:
ViewController.swift

Initiate Intent Flow

To initiate intent flow, send the app_present parameter as 1 while creating the payment.
ViewController.swift

Request Parameters

Along with the other payment creation request parameters, you must pass:method mandatory : string The method used to make the payment. Here, it must be app.provider mandatory if method=app : string Name of the PSP app. Here, it must be cred.app_present mandatory if app=cred : integer Based upon response from the app present function, pass the value in this field. Possible values:
  • 1: Opens the CRED app on customer’s device.
  • 0 (default): Sends a push notification to the customer’s device.
callback_url mandatory : string The URI scheme, using which the CRED app will be opened on the customer’s mobile device.