...
Code Block | ||
---|---|---|
| ||
{ type: 'validation', | 'tokenization' | 'cardType' fieldName: 'cardNumber' | 'cardCvv' | 'cardExpiry', success: boolean, message: string, paymentToken: string } |
| ‘validation’ | ‘tokenization’ | ‘cardType’ | the type of message |
---|---|---|
|
|
|
| boolean | result of an action. Eg validation or tokenization |
| string | Optional. Eg for validation, might include a validation error string. |
| string | The same paymentToken to be used in the sale API. |
| CardTypeData | Only applies if the type is `cardType` |
...