The OCPP configuration parameter StopTransactionOnInvalidId determines how zappi should behave if the third-party platform indicates that the current transaction is invalid.
An invalid transaction can occur for various reasons:
- The TAGID sent to the provider is not valid or recognized.
- There is an issue with the customer's account.
- Too much time has elapsed between authorizing the session and starting the charging.
- The station has initiated a free vend charge, which is not allowed.
In such cases, the platform will notify zappi that the session is invalid. You can choose how zappi responds to this information:
- Continue charging.
- Stop charging.
By default, zappi will continue charging. However, if you are using zappi in a public charging scenario, you may not want this behaviour. To make the charger stop charging when an invalid response is received from the platform, set StopTransactionOnInvalidId to True in the OCPP configuration. When set to True, zappi will automatically switch the charger to stop mode, preventing further energy consumption.