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 in the components reference
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 in the components reference 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 in the components reference 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 in the components reference 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 in the components reference 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 Android. 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) View available options for upiApp in the appendix
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 in the components reference 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 in the components reference 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 in the components reference Example
All possible values of provider can be found in the wallet providers appendix

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 in the components reference Example
All possible values of netbankingBankName can be found in the netbanking codes and names appendix

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 in the components reference Example
All possible values of provider can be found in the pay later providers appendix

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 in the components reference Example
All possible values of provider can be found in the cardless EMI providers appendix

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 tokenise 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 in the components reference