Skip to main content

Debit and Credit Card

For card payments, method should be specified as card.

Sample Code

The sample code shown below allows the checkout to accept a card payment of 299.35:
Card

Netbanking

For netbanking, method should be specified as netbanking and an additional field bank must specify the bank with its respective bank code. Use getPaymentMethods to retrieve the list of supported bank codes.

Sample Code

The sample code shown below allows the checkout to perform a netbanking transaction for a payment of ₹299.35:
Netbanking

UPI

For UPI payments, method should be specified as upi. 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

UPI Intent
Handy TipsIf your application targetSdkVersion is 30 or above, add the following code in your app’s manifest file to support the UPI Intent flow.
AndroidManifest.xml
View the complete list of UPI supported apps and their package names.

Collect Flow

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

Sample Code

The sample code below will send collect request to gaurav.kumar@exampleupi handle:
UPI Collect

CRED

Given below is the sample code when the payment method is app and provider is cred.

Intent Flow

  • Check if the Cred app is installed on the customer’s phone. This can be detected by calling isCredAppAvailable method.
Flow
  • Handle the Cred app callback in the AppDelegate. To do this:
    1. Open Runner.xcworkspace.
    2. Go to AppDelegate.swift.
    3. Add the open url: method as given below:
Open URL

Collect Flow

Check if the Cred app is installed on the customer’s phone. This can be detected by calling isCredAppAvailable method.
Collect Flow

Pay Later

Given below is the sample code for the payment method paylater. Know more about paylater.
Paylater

Cardless EMI

Given below is the sample code for the payment method cardless_emi. Know more about Cardless EMI.
Cardless EMI

EMI

Given below is the sample code for the payment method emi.
EMI