The tokenisation is triggerd when the SubmitButton is pressed. The action is async, so the outcome of the tokenisation will be shared in the cardTokenized or cardTokenizationFailed handlers.
The props for the Frames wrapper component
prop
type
desciption
config.publicKey
string
The public key from your Checkout.com account
config.debug
boolean
Trigger the debugg mode ()
config.cardholder
object
The cardholder name and billing details
The cardholder information
prop
type
desciption
cardholder.name
string
The name of the cardholder
cardholder.phone
string
The phone number of the customer
cardholder.billingAddress
object
The cardholder billing address
cardholder.billingAddress.addressLine1
string
Address line 1
cardholder.billingAddress.addressLine2
string
Address line 2
cardholder.billingAddress.zip
string
Zip
cardholder.billingAddress.city
string
City
cardholder.billingAddress.state
string
State
cardholder.billingAddress.country
string
Country
The hanlders
prop
type
desciption
frameValidationChanged
function
Triggered when a field's validation status has changed. Use it to show error messages or update the UI.
paymentMethodChanged
function
Triggered when a valid payment method is detected based on the card number being entered.
cardValidationChanged
function
Triggered when the state of the card validation changes.
cardTokenized
function
Triggered after a card is tokenized. Here you will get the card token alongside general card information