Use Cases
Depending on the use cases that you might have, Razorpay allows you to create any configuration of the payment methods, of your choice:- 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 different payment method.
- Restricting the kind of network, issuer, BIN and card type, different card properties, 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, any wallet can be removed as a payment instrument 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. You can again order the PSPs within the UPI block 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.
Configuring Payment Methods
To control payment methods on the Checkout, there are different ways to pass the configuration to the Checkout:- Configure via Dashboard: Choose the payment methods and instruments you want to display at checkout, arrange them in your preferred order, and tailor the checkout experience to match your business needs. Create custom payment blocks for specific customer segments on the Razorpay Dashboard. Know more about Payment Configuration.
-
Pass Configuration at Runtime: Pass the configuration to the
optionsparameter of the Checkout code at the run time. This is useful when you want to modify the order of the payment methods for a particular set of payments while rendering the Checkout. See the Sample Code for details. -
Use a Configuration ID: Create a global setting of the payments as a Configuration ID and pass these values while creating the Order. This is useful when you want control the checkout configurations dynamically using different Configuration IDs. You can create a Configuration ID through the Dashboard. There are two ways to pass the Configuration ID:
- While creating the order: Add the
checkout_config_idfield in the order creation request. - While opening the checkout: Include the
checkout_config_idin the checkout options.
Pass config id - While creating the order: Add the