Learn about the components which are available with Cashfree.js
options.values
. Certain components are payable and might need other components to be mounted to be ready for payment
cashfree.js
has been initialized and
DOM container is ready for mounting the component.component.data().value
. All returned
values of component.data()
can be found here
values
cashfree.create('componentName', options)
key | description |
---|---|
placeholder string OPTIONAL | placeholder for your card number field |
cardHolder string OPTIONAL | name of your customer |
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
cardHolder string | name of your customer |
values
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
cardExpiry string | card expiry in MM/YY format |
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
cardCvv number | card cvv |
values
cashfree.create('componentName', options)
key | description |
---|---|
placeholder string OPTIONAL | placeholder for enter vpa field |
upiId string OPTIONAL | vpa/ upi id of the customer |
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
upiId string | vpa/ upi id of the customer |
loaderror
kindbutton
payabletrue
values
cashfree.create('componentName', options)
key | description |
---|---|
upiApp string Required | name of the upi app |
buttonText string OPTIONAL | Text for button, ex Google Pay for upiApp gpay |
buttonIcon bool OPTIONAL | whether to show app icon or not |
upiApp
are here
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.value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
upiApp | name of the upi app |
values
cashfree.create('componentName', options)
key | description |
---|---|
size string required | size of the qr code. ex “220px” |
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
size string | size of the qr code. ex “220px” |
values
cashfree.create('componentName', options)
key | description |
---|---|
provider string Required | name of the wallet. ex phonepe . All names here |
buttonText string OPTIONAL | Text for button, ex Google Pay for upiApp gpay |
buttonIcon bool OPTIONAL | whether to show app icon or not |
phone string Required | 10 digit phone number of your customer |
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.value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
provider string | name of the wallet. ex phonepe . All names here |
phone string | 10 digit phone number of your customer |
provider
can be found here
values
cashfree.create('componentName', options)
key | description |
---|---|
netbankingBankName string Required | name of the bank. ex HDFCR. See list |
buttonText string OPTIONAL | Text for button, ex Google Pay for upiApp gpay |
buttonIcon bool OPTIONAL | whether to show app icon or not |
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.value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
netbankingBankName string | name of the bank |
netbankingBankName
can be found here
values
cashfree.create('componentName', options)
key | description |
---|---|
provider string Required | name of the wallet. ex simpl . All names here |
buttonText string OPTIONAL | Text for button, ex Simpl |
buttonIcon bool OPTIONAL | whether to show app icon or not |
phone string Required | 10 digit phone number of your customer |
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.value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
provider string | name of the provider. ex simpl . All names here |
phone string | 10 digit phone number of your customer |
provider
can be found here
values
cashfree.create('componentName', options)
key | description |
---|---|
provider string Required | name of the wallet. ex flexmoney . All names here |
buttonText string OPTIONAL | Text for button, ex Flexmoney |
buttonIcon bool OPTIONAL | whether to show app icon or not |
phone string Required | 10 digit phone number of your customer |
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.value
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 |
phone string | 10 digit phone number of your customer |
provider
can be found here
.pay()
to save a payment method for a customer. This works for only cards. This will tokenize your card
kindcheckbox
payablefalse
values
cashfree.create('componentName', options)
key | description |
---|---|
label string OPTIONAL | Label for the checkbox |
value
component.data().value
. All returned values of component.data()
can be found here
key | description |
---|---|
saveInstrument bool | does the user wants to save |