Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
{
    type: 'field-validation', | 'field-tokenization' | 'cardType'
    fieldName: 'cardNumber' | 'cardCvv' | 'cardExpiry',
    success: boolean,
    message: string,
    paymentToken: string
}

type

'field-validation' | 'field-tokenization' | 'cardType'

the type of message

fieldName

'cardNumber' | 'cardCvv' | 'cardExpiry'

 

success

boolean

result of an action. Eg validation or tokenization

message

string

Optional. Eg for validation, might include a validation error string.

paymentToken

string

The same paymentToken to be used in the sale API.

cardTypeData

CardTypeData

Only applies if the type is `cardType`

...