How kevotowet/bingwa works
Bingwa is represented here as a small M-Pesa STK Push payment endpoint. Its visible workflow accepts phone, amount, and package data, obtains a Safaricom OAuth token, then submits a payment prompt and returns Safaricom’s response. The source also configures a callback URL, but no callback handler appears in the file tree. The README provides no further capability details, and the frontend file was not sampled, so its role and wiring are not asserted.
Main entry points: stkpush.php OAuth token request
Components 7
STK payments
- Validate payment input
stkpush.php - OAuth token request
stkpush.php - Build and send STK request
stkpush.php
Other components
- Payment client
- Safaricom OAuth
- Safaricom STK API
- Configured callback receiver
Connections 7
- Payment client → Validate payment input: posts payment details
stkpush.php - Validate payment input → OAuth token request: valid input continues
stkpush.php - OAuth token request → Safaricom OAuth: requests token
stkpush.php - OAuth token request → Build and send STK request: provides access token
stkpush.php - Build and send STK request → Safaricom STK API: submits STK prompt
stkpush.php - Build and send STK request → Configured callback receiver: registers callback URL
stkpush.php - Safaricom STK API → Payment client: returns raw response