Webhook handler for Botswana HomeChoice SMS reconciliation messages.
ObjData.ObjData
└── ObjHook
| Method | Description |
|---|---|
__init__(database_connection, page_object) |
Initialise the webhook handler with database connection and optional page object. |
Process(payload_data, param_1..param_8) |
Read unactioned XML records from data_botswana_homechoice, parse message envelopes, insert into HomeChoice_Recon, and mark as actioned. |
| Attribute | Description |
|---|---|
page_object |
Page object reference passed at initialisation. |
data_botswana_homechoice - Source table with unactioned XML payloads.HomeChoice_Recon - Target table for parsed individual messages.Processes batches of unactioned Botswana HomeChoice gateway XML payloads. Each payload contains one or more SMS messages in an envelope structure. Messages are extracted and inserted individually into the reconciliation table.
Updated: 2026-03-20
cythonize -3 -a -i ObjHookBotswana.py