Skip to main content
Cashfree provides the following list of components along with the initial state that can be passed in options.values. Certain components are payable and might need other components to be mounted to be ready for payment
A component can only be mounted after cashfree.js has been initialized and DOM container is ready for mounting the component.

Card components

There are four card components as listed below:

cardNumber

A component to accept card number

Parameters

Card Number Object

Returned Value

You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here
Card Number Object

cardHolder

A component to accept card holder’s name kindinput payablefalse
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example

cardExpiry

A component to accept card expiry kindinput payablefalse
Accepted values
Does not accept anything
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example

cardCvv

A component to accept card cvv/cvc kindinput payablefalse
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example

UPI components

List of UPI components

upiCollect

A component to accept user’s vpa/upi id kindinput payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example

upiApp

A component to initiate UPI app/intent payment. Only works in mobile phones. If you mount it on desktop it will throw an error in loaderror kindbutton payabletrue
Mobile only. Component will not mount on custom webview/inappbrowser Andoird. It will however mount in popular apps like Facebook, Instagram, Twitter. For iPhone it will always mount.
Accepted values
You can pass values to a component using options cashfree.create('componentName', options) Available options for upiApp are here
In case bttonText is not provided the value of buttonIcon would be replaced to true. This has been done so that your customer always sees icon of the app.
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example
Example

upiQr

A component to show a UPI qr code kindimage payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example

Wallet components

Wallet has only one component

wallet

A component to initiate wallet payment. kindbutton payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
In case buttonText is not provided the value of buttonIcon would be replaced to true. This has been done so that your customer always sees icon of the app.
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example
All possible values of provider can be found here

Netbanking components

Netbanking has only one component

netbanking

A component to initiate Net Banking payment. kindbutton payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
In case buttonText is not provided the value of buttonIcon would be replaced to true. This has been done so that your customer always sees icon of the app.
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example
All possible values of netbankingBankName can be found here

Paylater components

Paylater has only one component

paylater

A component to initiate paylater payment. kindbutton payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
In case buttonText is not provided the value of buttonIcon would be replaced to true. This has been done so that your customer always sees icon of the app.
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example
All possible values of provider can be found here

Cardless EMI components

Paylater has only one component

cardlessEMI

A component to initiate Cardless EMI payment. kindbutton payabletrue
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
In case buttonText is not provided the value of buttonIcon would be replaced to true. This has been done so that your customer always sees icon of the app.
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here Example
All possible values of provider can be found here

Other Components

savePaymentInstrument

A component that can be used in .pay() to save a payment method for a customer. This works for only cards. This will tokenize your card kindcheckbox payablefalse
Accepted values
You can pass values to a component using options cashfree.create('componentName', options)
Returned value
You can get the value of a component by calling component.data().value. All returned values of component.data() can be found here