To add or update customer fields on JSON object, please do the following:
indigitall.assignOrUpdateValueToCustomerFields({
"field1": "value",
"field2": "value",
},(success) => {
// do something
}, (error) => {
// do something else
})
For example:
indigitall.assignOrUpdateValueToCustomerFields({
"email": "[email protected]",
"phone": "123456",
"name": "Peter",
"last_name": "Brice"
},(success) => {
// do something
}, (error) => {
// do something else
});
Otherwise, if you want to eliminate a field, you have to do this with an arrayList of the fieldNames:
indigitall.deleteValuesFromCustomerFields([
"field1",
"field2"
],(success) => {
// do something
}, (error) => {
// do something else
})