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, Grab Pay could be displayed outside the Wallet block as a separate payment method. Maybank could come out of the FPX/Online Banking 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 Maybank Visa Debit cards on the Checkout. -
Removing a certain payment method or instrument.
For example, TouchnGo can be removed as a payment method from wallets. The entire FPX/Online Banking block or a certain bank in FPX/Online Banking can be removed from the Checkout. -
Reordering of payment methods on the Checkout.
You can choose to arrange Wallets as the first section instead of Cards on the Checkout. You can again order the PSPs within the Wallet block according to your need. -
Grouping of payment instruments.
For example, you can choose to group FPX/Online banking and Cards 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:-
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.
- While creating the order: Add the
Pass config id