Skip to main content
Version: 4.0

PayPing

dotnet add package Parbad.Gateway.PayPing

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

PayPing expects the amount in Toman. Parbad never converts amounts, so set the invoice amount in Toman.

Configuration​

builder.Services.AddParbad()
.ConfigureGateways(gateways =>
{
gateways
.AddPayPing()
.WithAccounts(accounts =>
{
accounts.AddInMemory(account =>
{
account.AccessToken = "<Your access token>";
});
});
})
// ...

Payment request​

var result = await onlinePayment.RequestAsync(invoice =>
{
invoice
.SetAmount(amount)
.SetCallbackUrl(callbackUrl)
.UseAutoIncrementTrackingNumber()
.SetPayPingData(payPing =>
{
// Optional: the payer's name, mobile and a description
})
.UsePayPing();
});