Upgraded docs version is here ✨

Your documentation experience is getting an upgrade. Check it out now!

Go To Beta

Docs upgrade is here. Check it out!

Go To Beta
API ReferenceIntegrationsKnowledge Base

Customize Payment Methods

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:

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.

×