One component instance represents one bank. To offer several banks, create
one component per bank and pass the selected one as
payMethod to pay().
Returned Value
netBanking
Net Banking Object
Validation
The component resolves the bank code from
value.bankCode, falling back to a case- and whitespace-insensitive lookup of value.bankName. If the resolved code is not in the supported bank list, the component reports:
netBanking.data() before the customer presses pay. If pay() is called with an invalid bank, it rejects and the root error event fires with this error object.
Code Snippet for netBanking component
Net Banking does not use
cardType. Pass only the billing session /
subscription / mandate id, the sessionToken, and the selected net banking
component as payMethod.Building a bank list
A common layout is a few popular banks as clickable tiles plus a More banks dropdown for the rest. Create one component per bank, mount it into a 1 px hidden node inside the tile, and make your own tile the visible, clickable surface.change — mount it into a node you append to the container, and keep only one lazily-mounted component alive at a time:
Supported Banks
Customize Your SDK -> Supported Banks
View the full list of bank codes supported for Net Banking
- Customize component styles
- Add multiple payment methods using tabs
- Handle payment confirmation on backend
- Set up webhooks for payment status