Get the right part of the Tag ID when sent via a payment terminal
MODIFY
src/server/ocpp/validator/OCPPValidator.ts
src/server/ocpp/validator/OCPPValidator.ts
@@ -156,7 +156,7 @@ export default class OCPPValidator extends SchemaValidator {
if (tagID &&
typeof tagID === 'string' &&
tagID.toLowerCase().includes(';')) {
- tagID = tagID.split(';')[0];
+ tagID = tagID.split(';')[1];
}
return tagID;
}

Get the right part of the Tag ID when sent via a payment terminal