GiftCardInputEvent

GiftCard field event interface

Declares the shape of the callback event argument. This object carries the state of a GiftCard input field including styles applied, the state of an input field contents

Properties

JS
JavaScript

{

 "cardBrand": "Visa",

 "currentState": {

   "hasErrorClass": false,

   "hasFocusClass": true,

   "isCompletelyValid": true,

   "isEmpty": false,

   "isPotentiallyValid": true

  },

  "eventType": "focusClassAdded",

  "field": "cvv",

  "previousState": {

   "hasErrorClass": false,

   "hasFocusClass": false,

   "isCompletelyValid": true,

   "isEmpty": true,

   "isPotentiallyValid": false

  }

}