CollegeApp.UI.RaveBindings 7.0.1

dotnet add package CollegeApp.UI.RaveBindings --version 7.0.1                
NuGet\Install-Package CollegeApp.UI.RaveBindings -Version 7.0.1                
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="CollegeApp.UI.RaveBindings" Version="7.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CollegeApp.UI.RaveBindings --version 7.0.1                
#r "nuget: CollegeApp.UI.RaveBindings, 7.0.1"                
#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.
// Install CollegeApp.UI.RaveBindings as a Cake Addin
#addin nuget:?package=CollegeApp.UI.RaveBindings&version=7.0.1

// Install CollegeApp.UI.RaveBindings as a Cake Tool
#tool nuget:?package=CollegeApp.UI.RaveBindings&version=7.0.1                

CollegeApp.UI.RaveBindings

Easily integrate flutterwave in blazor with no JavaScript needed.

Example usage

using CollegeApp.UI.RaveBindings;

// registering service;
builder.Services.AddServerSideBlazor();
builder.Services.AddPaymentServices(options =>
{
    options.AddPaymentOptions(PaymentOptions.MobileMoneyZambia); // can add multiple payment methods
    options.Title = "Title to show on the checkout modal";
    options.LogoLocation = "assets/img/logo.png";
    options.Description = "Description to show on the modal";
    options.PublicKey = "Your-Public Key Here";
});

@using CollegeApp.UI.RaveBindings
<CheckoutButton Model="@request" 
				IconCss="oi oi-credit-card" 
				OnPaymentCancelled="FailedToPay" 
				OnPaymentComplete="ProcessPayment">
				Pay Now
</CheckoutButton>
@code {
    PaymentRequest request = new PaymentRequest
        {

            Amount = 10,
            Currency = "ZMW",
            Email = "example@email.com",
            Phone ="0960000000",
            Customer = "Wisdom Jere",
            CustomerId = "1102",
            CustomerMac = "JustTesting",

    };
    void ProcessPayment(PaymentResponse response)
    {
           //Validate payment and save to db
    }
    void FailedToPay(string respose)
    {
        //Do with analytics incase payment was cancelled
    }
}

Adding it to your project with nuget

Package Manager

Install-Package CollegeApp.UI.RaveBindings -Version 6.0.3

.NET CLI

dotnet add package CollegeApp.UI.RaveBindings --version 6.0.3

PackageReference

<PackageReference Include="CollegeApp.UI.RaveBindings" Version="6.0.3" />

Sometimes the Flutterwave Backend Server Might be down So You can Haddle exceptions as needed. image

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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
7.0.1 174 9/17/2023
7.0.0 110 9/17/2023
6.0.3 380 10/9/2022
6.0.2 386 10/3/2022
6.0.1 382 9/29/2022
6.0.0 405 9/28/2022
1.8.3 407 9/28/2022