setCustomData
Call the setCustomData API to set custom data that is to be passed through to the card issuer via the POS machine when tapping it.
Method signature
copy
public boolean setCustomData(byte[] data);Request parameters
Item | Type | Description | Required |
data | byte[] | The custom data to be passed through to the card issuer. The value of this parameter is in hexadecimal, and its length must be exactly 10 bytes. If null, no data is processed.
| Required |
Response parameters
N/A
Sample
copy
public boolean setCustomData(byte[] data) {
if (lifeCycle.get() < CONNECTED) {
return false;
}
NFCWrapperManager.INSTANCE.setIadData(data);
return true;
}