Note: In order to utilize the Signature Capture feature, it will first need to be enabled on TMS. This can be enabled via a TMS Request.
When a transaction requires signature verification, verifySignature
will be called.
The signature will need to be captured on the device and formatted as an array of bytes. The sequence of pixels are row-by-row, top left to bottom right. In other words, if m is height in pixels and n is width in pixels:
data = row 1 column 1, row 1 column 2... row 1 column n, row 2 column 1, row 2 column 2... row 2 column n, ..., row m column 1, row m column 2... row m column n
This must then be set within
[[CardEaseMobile sharedInstance] setSignature: data]
The signature will then to be verified using signatureVerified