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 numberParameters
Card Number Object
Returned Value
You can get the value of a component by callingcomponent.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 payablefalseAccepted 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 payablefalseAccepted 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 payablefalseReturned 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 componentsupiCollect
A component to accept user’s vpa/upi id kindinput payabletrueAccepted 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 inloaderror
kindbutton
payabletrue
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 payabletrueAccepted 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 componentwallet
A component to initiate wallet payment. kindbutton payabletrueAccepted 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
provider can be found in the wallet providers appendix
Netbanking components
Netbanking has only one componentnetbanking
A component to initiate Net Banking payment. kindbutton payabletrueAccepted 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
netbankingBankName can be found in the netbanking codes and names appendix
Paylater components
Paylater has only one componentpaylater
A component to initiate paylater payment. kindbutton payabletrueAccepted 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
provider can be found in the pay later providers appendix
Cardless EMI components
Paylater has only one componentcardlessEMI
A component to initiate Cardless EMI payment. kindbutton payabletrueAccepted 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
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