Appdiv.Payment.CBEBirr 1.0.3

dotnet add package Appdiv.Payment.CBEBirr --version 1.0.3
                    
NuGet\Install-Package Appdiv.Payment.CBEBirr -Version 1.0.3
                    
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.CBEBirr" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Appdiv.Payment.CBEBirr" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Appdiv.Payment.CBEBirr" />
                    
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.CBEBirr --version 1.0.3
                    
#r "nuget: Appdiv.Payment.CBEBirr, 1.0.3"
                    
#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.CBEBirr&version=1.0.3
                    
Install Appdiv.Payment.CBEBirr as a Cake Addin
#tool nuget:?package=Appdiv.Payment.CBEBirr&version=1.0.3
                    
Install Appdiv.Payment.CBEBirr as a Cake Tool

CBEBirr C2B Payment Service

This document provides information on how to implement the ICBEBirrPayment interface for handling CBEBirr payment operations.

Implementing ICBEBirrPayment

To implement the ICBEBirrPayment interface, you need to create a class that provides concrete implementations for the following methods:

  1. Task<C2BPaymentConfirmationResult> PaymentConfirmation(C2BPaymentConfirmationRequest request)
  2. Task<ApplyTransactionResponse> PaymentQueryAsync(ApplyTransactionRequest request)
  3. Task<C2BPaymentValidationResult> PaymentValidation(C2BPaymentValidationRequest request)

Example Implementation


public class CBEBirrPayment : ICBEBirrPayment
{
    public Task<C2BPaymentConfirmationResult> PaymentConfirmationAsync(C2BPaymentConfirmationRequest request)
    {
        // Implement the logic for payment confirmation
    }

    public Task<ApplyTransactionResponse> PaymentQueryAsync(ApplyTransactionRequest request)
    {
        // Implement the logic for payment query
    }

    public Task<C2BPaymentValidationResult> PaymentValidationAsync(C2BPaymentValidationRequest request)
    {
        // Implement the logic for payment validation
    }
}

Replace the placeholder comments with the actual logic for handling each type of request.

Adding CBEBirr to Your API

To add CBEBirr to your API, follow these steps:

  1. Register the ICBEBirrPayment implementation in your dependency injection container.
// In Program.cs
var builder = WebApplication.CreateBuilder(args);

// ...existing code...

builder.Services.AddCBEBirr<CBEBirrPayment>();

var app = builder.Build();

// ...existing code...

// app.UseCBEBirr();
app.UseCBEBirr(
    // you can also override the request default path
    // endpoint: "/cbebirr",
    // 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 76 1/14/2025
1.0.2 62 1/13/2025
1.0.1 69 1/11/2025
1.0.0 78 1/6/2025

Bug fix.