This project implements a webhook endpoint for YaYa Wallet to notify partner systems about transactions.
- The incoming data is in JSON format.
- The processing logic is a placeholder and needs to be customized based on actual requirements.
- Python 3.x
- Flask library
- Clone the repository.
- Activate the virtual environment (
source venv/bin/activate
). - Install Flask (
pip install Flask
). - Run the Flask app by executing
python app.py
. - Use a tool like Postman to send a POST request to
http://localhost:5000/webhook
with sample JSON data.
- Implemented a basic Flask app to handle incoming webhook notifications.
- Processed the JSON data and provided a placeholder for custom processing logic.
- Handled exceptions and provided appropriate error responses.
- Included a simple logging mechanism for received webhook notifications.