builder.Services.AddParbad()
.ConfigureGateways(gateways => gateways.AddMellat().WithAccounts(...))
.ConfigureHttpContext(httpContext => httpContext.UseDefaultAspNetCore())
.ConfigureStorage(storage => storage.UseEfCore<ShopDbContext>());
var result = await onlinePayment.RequestAsync(invoice => invoice
.SetAmount(250_000)
.SetCallbackUrl(callbackUrl)
.UseAutoIncrementTrackingNumber()
.UseMellat());
Iranian gateways
Mellat, Melli, Saman, Pasargad, Parsian, Asan Pardakht, Iran Kish, Sepehr, ZarinPal, Pay.ir, IDPay, YekPay, PayPing, Zibal and FanAva, behind one API.
Safe verification
Parbad keeps the state of every payment, so a payment is verified only once and one bank payment cannot settle two orders.
Virtual Gateway
A simulated bank for development and tests, so you need no real gateway account to build your shop.
