Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PayBridge

> 编程语言
Open source

Seamlessly integrate multiple payment gateways into your ASP.NET Core applications.

356 stars0 likes1 views
WebsiteGitHub

About

Seamlessly integrate multiple payment gateways into your ASP.NET Core applications.

PayBridge.SDK

Seamlessly integrate multiple payment gateways into your ASP.NET Core applications.

Features • Getting Started • Usage • Sample Payloads & Responses • Contributing • License


Documentation Portal

The redesigned docs site is published on GitHub Pages:

  • https://teesofttech.github.io/PayBridge/

Use it as the canonical operational guide for setup, security hardening, routing, idempotency, and integration testing.


Features

  • Unified API: Interact with multiple payment gateways (e.g., Flutterwave, Paystack, Stripe, Korapay, PeachPayments) through a single, consistent interface.
  • Database Flexibility: Choose between PayBridge's default database or integrate with your own.
  • Transaction Logging: Automatically records transaction details for auditing and reporting.
  • Extensible Architecture: Built with Clean Architecture principles for maintainability and scalability.

Getting Started

✅ Prerequisites

  • .NET 8.0 SDK
  • SQL Server or another supported database

Installation

bash
git clone https://github.com/teesofttech/PayBridge.git
cd PayBridge

⚙️ Configure the Database

Keep connection strings out of tracked configuration. For local development, store one with .NET user-secrets:

bash
dotnet user-secrets set "ConnectionStrings:PayBridgeDbContext" \
  "" \
  --project PayBridge.SDK.Example/PayBridge.SDK.Example.csproj

⚙️ Configure Payment Gateways

Korapay website: https://www.korahq.com/

bash
dotnet user-secrets set "PaymentGatewayConfig:EnabledGateways:0" "Korapay" \
  --project PayBridge.SDK.Example/PayBridge.SDK.Example.csproj
dotnet user-secrets set "PaymentGatewayConfig:Korapay:PublicKey" "" \
  --project PayBridge.SDK.Example/PayBridge.SDK.Example.csproj
dotnet user-secrets set "PaymentGatewayConfig:Korapay:SecretKey" "" \
  --project PayBridge.SDK.Example/PayBridge.SDK.Example.csproj

Use environment variables or a managed secret store in deployed environments. Never commit sandbox or live credentials to appsettings*.json.

Apply Migrations

bash
dotnet ef database update

▶️ Build and Run

bash
dotnet build
dotnet run

Usage

Sample Payment Controller

…

Sample Payloads & Responses

Sample Payment Request Payload

json
{
  "amount": 1000,
  "currency": "NGN",
  "description": "est",
  "customerEmail": "[email protected]",
  "customerName": "string",
  "customerPhone": "string",
  "redirectUrl": "https://localhost:7252/api/payment/verify-transaction",
  "webhookUrl": "https://localhost:7252/api/payment/verify-transaction",
  "metadata": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "paymentMethodType": 0,
  "savedPaymentMethodId": "string",
  "gateway": 1
}

Sample Payment Response

json
{
  "success": true,
  "transactionReference": "FLW_dc324e96d52b4bd48c401ff9194c15e8",
  "message": "Hosted Link",
  "checkoutUrl": "https://checkout-v2.dev-flutterwave.com/v3/hosted/pay/207b10ab0a05ddf19746",
  "status": 0,
  "gatewayResponse": {
    "link": "https://checkout-v2.dev-flutterwave.com/v3/hosted/pay/207b10ab0a05ddf19746"
  }
}

Contributing

We welcome your ideas, improvements, and fixes!

  1. Fork the repo → PayBridge on GitHub
  2. Clone your fork:
bash
git clone https://github.com/teesofttech/PayBridge.git
  1. Create a feature branch:
bash
git checkout -b feature/your-feature-name
  1. Implement, Commit, and Push:
bash
git commit -m "feat: add new feature"
git push origin feature/your-feature-name
  1. Create a Pull Request and describe your changes.

Your support helps make PayBridge better for everyone!


License

PayBridge is released under the MIT License.

You're free to use, modify, and distribute this software as long as the original license is included.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言