Skip to content

Amlakie-T/YaYa-Wallet-Webhook-Endpoint-Implementation-Using-Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

YaYa-Wallet-Webhook-Endpoint-Implementation-Using-Python

Introduction

This project implements a webhook endpoint for YaYa Wallet to notify partner systems about transactions.

Assumptions

  • The incoming data is in JSON format.
  • The processing logic is a placeholder and needs to be customized based on actual requirements.

Prerequisites

  • Python 3.x
  • Flask library

How to Test

  1. Clone the repository.
  2. Activate the virtual environment (source venv/bin/activate).
  3. Install Flask (pip install Flask).
  4. Run the Flask app by executing python app.py.
  5. Use a tool like Postman to send a POST request to http://localhost:5000/webhook with sample JSON data.

Problem-solving Approach

  1. Implemented a basic Flask app to handle incoming webhook notifications.
  2. Processed the JSON data and provided a placeholder for custom processing logic.
  3. Handled exceptions and provided appropriate error responses.
  4. Included a simple logging mechanism for received webhook notifications.

About

YaYa Wallet Webhook Endpoint Implementation Using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages