Skip to main content
Version: 4.0

FanAva

dotnet add package Parbad.Gateway.FanAva

The FanAva gateway for Parbad, the online payment library for .NET.

Configuration​

builder.Services.AddParbad()
.ConfigureGateways(gateways =>
{
gateways
.AddFanAva()
.WithAccounts(accounts =>
{
accounts.AddInMemory(account =>
{
account.UserId = "<Your user ID>";
account.Password = "<Your password>";
});
});
})
// ...

Payment request​

var result = await onlinePayment.RequestAsync(invoice =>
{
invoice
.SetAmount(amount)
.SetCallbackUrl(callbackUrl)
.UseAutoIncrementTrackingNumber()
.SetFanAvaAdditionalData(new FanAvaGatewayAdditionalDataRequest
{
// Optional: mobile number, email, apportionment accounts, ...
})
.UseFanAva();
});