c2BValidationRoute
c2BValidationRoute(
handler):CallbackRoute<C2BValidationPayload>
Defined in: src/callbacks/receiver.ts:185
Predefined route for C2B validation. Return C2B_VALIDATION_ACCEPT or C2B_VALIDATION_REJECT (or a custom { statusCode, body }) so Daraja gets the correct JSON.
Parameters
Section titled “Parameters”handler
Section titled “handler”(payload) => void | Promise<void> | CallbackResponseOverride | Promise<CallbackResponseOverride>