Parbad.Owin
4.0.0
Prefix Reserved
dotnet add package Parbad.Owin --version 4.0.0
NuGet\Install-Package Parbad.Owin -Version 4.0.0
<PackageReference Include="Parbad.Owin" Version="4.0.0" />
<PackageVersion Include="Parbad.Owin" Version="4.0.0" />
<PackageReference Include="Parbad.Owin" />
paket add Parbad.Owin --version 4.0.0
#r "nuget: Parbad.Owin, 4.0.0"
#:package Parbad.Owin@4.0.0
#addin nuget:?package=Parbad.Owin&version=4.0.0
#tool nuget:?package=Parbad.Owin&version=4.0.0
Parbad.Owin
OWIN and classic ASP.NET (System.Web) integration for Parbad, the online payment library for .NET. For ASP.NET MVC 5, use Parbad.Mvc5, which includes this package.
Configuration
Build Parbad once when the application starts, for example in Application_Start or the OWIN Startup class:
var parbad = ParbadBuilder.CreateDefaultBuilder()
.ConfigureGateways(gateways => { /* your gateways */ })
.ConfigureHttpContext(httpContext => httpContext.UseOwinFromCurrentHttpContext())
.ConfigureStorage(storage => { /* your storage */ })
.Build();
Without dependency injection, create one scope per web request and dispose it at the end of the request:
using (var scope = StaticOnlinePayment.CreateScope())
{
var result = await scope.OnlinePayment.RequestAsync(invoice => { /* the invoice */ });
}
Virtual Gateway
The Parbad Virtual Gateway simulates a bank while you develop. Add it to the gateways with a path
(gateways.AddParbadVirtual().WithOptions(options => options.GatewayPath = "/MyVirtualGateway")) and add its OWIN
middleware:
app.UseParbadVirtualGateway(parbad.Services);
More information
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Microsoft.AspNetCore.Owin (>= 2.3.13)
- Microsoft.Owin.Host.SystemWeb (>= 4.2.3)
- Parbad (>= 4.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Parbad.Owin:
| Package | Downloads |
|---|---|
|
Parbad.Mvc5
ASP.NET MVC 5 integration for Parbad project. For more information see: https://www.nuget.org/packages/Parbad/ |
GitHub repositories
This package is not used by any popular GitHub repositories.