Tokenization

All cards entered into the Hosted Payment Page are tokenized first before 3DS verification and payment transaction.

EventDescriptionApplicable Methods
fz.tokenization.successEmitted when card is successfully tokenized.renderPaymentsPage
fz.tokenization.errorEmitted when card tokenization fails.renderPaymentsPage

fz.tokenization.success Data Payload

AttributeTypeDescription
tokenstringCard token
{
  message: "xxx",
  data: {
    token: "xxx",
  }
}

fz.tokenization.error Data Payload

AttributeTypeDescription
N/AN/AN/A
{
  errors: ["xxx"],
  data: null
}