Skip to content

eyop23/ethio_payment_verfication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payment Verification API

A Go-based REST API for verifying payments from Ethiopian payment providers (CBE and TeleBirr).

Features

  • Verify CBE bank transfer receipts (PDF parsing)
  • Verify TeleBirr mobile payment receipts (HTML parsing)
  • Extract payment details: payer, receiver, amount, date, reference
  • MongoDB storage for payments, users, and providers

Setup

  1. Copy environment file:
cp .env.example .env
  1. Install dependencies:
go mod download
  1. Run the server:
go run main.go

API Endpoints

Method Endpoint Description
POST /api/user/ Add a new user
GET /api/user/ Get all users
POST /api/payment/providers Add a payment provider
POST /api/payment/verify Verify a payment receipt

Tech Stack

  • Go
  • Gin (HTTP framework)
  • MongoDB
  • goquery (HTML parsing)
  • ledongthuc/pdf (PDF parsing)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages