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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Appdiv.Payment.Telebirr" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Appdiv.Payment.Telebirr" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Appdiv.Payment.Telebirr" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Appdiv.Payment.Telebirr --version 1.0.5
                    
#r "nuget: Appdiv.Payment.Telebirr, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Appdiv.Payment.Telebirr&version=1.0.5
                    
Install Appdiv.Payment.Telebirr as a Cake Addin
#tool nuget:?package=Appdiv.Payment.Telebirr&version=1.0.5
                    
Install Appdiv.Payment.Telebirr as a Cake Tool

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:

  1. Task<C2BPaymentConfirmationResult> PaymentConfirmation(C2BPaymentConfirmationRequest request)
  2. Task<C2BPaymentQueryResult> PaymentQuery(C2BPaymentQueryRequest request)
  3. 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:

  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.0.5 104 1/14/2025
1.0.4 86 1/13/2025
1.0.3 97 1/10/2025
1.0.2 81 1/8/2025
1.0.1 94 1/8/2025
1.0.0 117 1/6/2025

Bug fix.