Appdiv.Payment.Telebirr
1.0.5
dotnet add package Appdiv.Payment.Telebirr --version 1.0.5
NuGet\Install-Package Appdiv.Payment.Telebirr -Version 1.0.5
<PackageReference Include="Appdiv.Payment.Telebirr" Version="1.0.5" />
<PackageVersion Include="Appdiv.Payment.Telebirr" Version="1.0.5" />
<PackageReference Include="Appdiv.Payment.Telebirr" />
paket add Appdiv.Payment.Telebirr --version 1.0.5
#r "nuget: Appdiv.Payment.Telebirr, 1.0.5"
#addin nuget:?package=Appdiv.Payment.Telebirr&version=1.0.5
#tool nuget:?package=Appdiv.Payment.Telebirr&version=1.0.5
Telebirr C2B Payment Service
This document provides information on how to implement the ITelebirrPayment
interface for handling Telebirr C2B payment operations.
Implementing ITelebirrPayment
To implement the ITelebirrPayment
interface, you need to create a class that provides concrete implementations for the following methods:
Task<C2BPaymentConfirmationResult> PaymentConfirmation(C2BPaymentConfirmationRequest request)
Task<C2BPaymentQueryResult> PaymentQuery(C2BPaymentQueryRequest request)
Task<C2BPaymentValidationResult> PaymentValidation(C2BPaymentValidationRequest request)
Example Implementation
using Appdiv.Payment.Shared.Models;
using Appdiv.Payment.Telebirr;
public class TelebirrPayment : ITelebirrPayment
{
public Task<C2BPaymentConfirmationResult> PaymentConfirmation(C2BPaymentConfirmationRequest request)
{
// Implement the logic for payment confirmation
}
public Task<C2BPaymentQueryResult> PaymentQuery(C2BPaymentQueryRequest request)
{
// Implement the logic for payment query
}
public Task<C2BPaymentValidationResult> PaymentValidation(C2BPaymentValidationRequest request)
{
// Implement the logic for payment validation
}
}
Replace the placeholder comments with the actual logic for handling each type of request.
Adding Telebirr to Your API
To add Telebirr to your API, follow these steps:
- Register the
ITelebirrPayment
implementation in your dependency injection container.
// In Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...existing code...
builder.Services.AddTelebirr<TelebirrPayment>();
var app = builder.Build();
// ...existing code...
// app.UseTelebirr();
app.UseTelebirr(
// you can also override the request default path
// endpoint: "/telebirr",
// paymentQueryPath: "/payment",
// paymentValidationPath: "/validation"
// paymentConfirmationPath: "/confirmation",
);
app.Run();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- SoapCore (>= 1.1.0.51)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Appdiv.Payment.Telebirr:
Package | Downloads |
---|---|
Appdiv.Payment.CBEBirr
CBE Birr payment integration for Commercial Bank of Ethiopia |
GitHub repositories
This package is not used by any popular GitHub repositories.
Bug fix.