Customize Payment Methods

Customise the payment methods available to customers while using Payment Links using Razorpay APIs.


You can configure the payment methods of your choice on the Checkout section of the Payment Links to provide a highly personalized experience for your customers.

There are two ways to customize the appearance of payment methods:

  • Using options and method Parameters
    You can enable or disable display of specific payment methods. For example, you can use the options and method parameters to display only card and netbanking methods on the Checkout.

  • Using options and config Parameters
    You can provide a more personalized Checkout experience by displaying specific payment methods and instruments to customers. You can:

    1. Remove an instrument from within a method - For example, hide HDFC bank from netbanking.
    2. Highlight a particular method or instrument - For example, highlight Amazon Pay wallet and ICICI Netbanking.
    3. Reorder instruments - For example, make UPI to appear on top of the payment methods list instead of Cards.

Options and Method Parameters🔗

You can use the options parameter to display or hide any of the following payment methods:

  • Card
  • Netbanking
  • UPI
  • Wallet

For example, you can choose to display only card and netbanking methods on the Checkout.

Original vs Customized Checkout🔗

Given below is a comparison of original Checkout and a customized one with only card and netbanking payment methods enabled.

Original Checkout

Customized Checkout

In the example, only the netbanking and card payment methods will be shown to the customers. UPI and wallets will not be shown.

Request Parameters🔗

List of request parameters to be used with the Create Payment Link API to display specific payment methods.

options mandatory

array Options to display or hide payment methods on the Checkout section. Parent parameter under which the checkout and method child parameters must be passed.

checkout mandatory

array The parameter for the Checkout section. method is its child parameter.

method mandatory
array Using this parameter, you can control the display of payment methods on the Checkout section. Possible values of the payment methods are:
  • netbanking

  • upi

  • card

  • wallet

    netbanking
    boolean Used to enable or disable netbanking as a payment method on the Checkout section. Possible values are:
    • 1 (default) - Displays netbanking on the Checkout.
    • 0 - Hides netbanking on the Checkout.
    upi
    boolean Used to enable or disable UPI as a payment method on the Checkout section. Possible values are:
    • 1 (default) - Displays UPI on the Checkout.
    • 0 - Hides UPI on the Checkout.
    card optional
    boolean Used to enable or disable card as a payment method on the Checkout section. Possible values are:
    • 1 (default) - Displays card on the Checkout.
    • 0 - Hides card on the Checkout.
    wallet optional
    boolean Used to enable or disable wallet as a payment method on the Checkout section. Possible values are:
    • 1 (default) - Displays wallet on the Checkout.
    • 0 - Hides wallet on the Checkout.

Options and Config Parameters🔗

You can use the options and config parameters for greater control over display of specific payment methods or instruments on the Checkout section of Payment Link. For example, you can remove a certain bank from Netbanking or highlight a specific wallet.

Use Cases🔗

Depending on the use cases that you might have, Razorpay allows you to create configuration of the payment methods:

  • Highlighting certain payment instruments on the Checkout. For example Google Pay could be displayed outside the UPI block as a separate payment method. HDFC Netbanking could come out of the Netbanking container as a separate payment method.

  • Restricting a particular card or banking network, issuer, BIN and card type, different properties of the card, to accept payments. For example, you can choose to accept payments only from "HDFC Visa Debit cards" on the Checkout.

  • Removing a certain payment method or instrument. For example, Freecharge can be removed as a payment method from wallets. The entire Netbanking block or a certain bank in Netbanking can be removed from the Checkout.

  • Reordering of payment methods on the Checkout. You can choose to arrange UPI as the first section instead of Cards on the Checkout. Within the UPI block, you can again order the PSPs, according to your need.

  • Grouping of payment instruments. For example, you can choose to group Netbanking and UPI payment methods of a bank as a block that will be labelled as Pay via Bank on the Checkout.

Request Parameters🔗

Learn about config and its child parameters that must be used to build a configuration of your choice here.

These parameters must be passed along with the options and checkout parameters mentioned below, along with the Create Payment Link API parameters.

Options Parameter🔗

options mandatory

array Options to display or hide payment methods on the Checkout section. Parent parameter under which the checkout child parameters must be passed.

checkout mandatory
array The parameter for the Checkout section.

Here are a few examples of how you can customize the payment methods on the Checkout section on Payment Links.

×