Reference every component shipped with Cashfree.js, the initial state options accepted by each one, and which components are payable on a custom checkout.
Use this file to discover all available pages before exploring further.
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.
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 loaderrorkindbuttonpayabletrue
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 optionscashfree.create('componentName', options)
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
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
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
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
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
key
description
provider string
name of the provider. ex flexmoney. All names here
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 cardkindcheckboxpayablefalse
Accepted values
You can pass values to a component using optionscashfree.create('componentName', options)
key
description
label stringOPTIONAL
Label for the checkbox
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
key
description
saveInstrument bool
does the user wants to save
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.