百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PayBridge

> 编程语言
开源

无缝集成多个支付网关到您的 ASP.NET Core 应用程序中。

356 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

无缝集成多个支付网关到您的 ASP.NET Core 应用程序中。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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