https://github.com/izzyjere/collegeapp.ui.ravebindings
Blazor Integration Library For Flutterwave Payment Gateway. No JavaScript Required.
https://github.com/izzyjere/collegeapp.ui.ravebindings
Last synced: 5 months ago
JSON representation
Blazor Integration Library For Flutterwave Payment Gateway. No JavaScript Required.
- Host: GitHub
- URL: https://github.com/izzyjere/collegeapp.ui.ravebindings
- Owner: izzyjere
- License: mit
- Created: 2022-09-03T23:53:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T11:09:00.000Z (almost 2 years ago)
- Last Synced: 2024-09-10T12:39:40.859Z (almost 2 years ago)
- Language: C#
- Size: 287 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CollegeApp.UI.RaveBindings
Easily integrate flutterwave in blazor with no JavaScript needed.
## Example usage
```csharp
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";
});
```
```razor
@using CollegeApp.UI.RaveBindings
Pay Now
@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**
```sh
Install-Package CollegeApp.UI.RaveBindings -Version 6.0.3
```
**.NET CLI**
```sh
dotnet add package CollegeApp.UI.RaveBindings --version 6.0.3
```
**PackageReference**
```sh
```
Sometimes the Flutterwave Backend Server Might be down So You can Haddle exceptions as needed.
