Skip to main content
Version: 4.0

YekPay

dotnet add package Parbad.Gateway.YekPay

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

Configuration​

builder.Services.AddParbad()
.ConfigureGateways(gateways =>
{
gateways
.AddYekPay()
.WithAccounts(accounts =>
{
accounts.AddInMemory(account =>
{
account.MerchantId = "<Your merchant ID>";
});
});
})
// ...

Payment request​

var result = await onlinePayment.RequestAsync(invoice =>
{
invoice
.SetAmount(amount)
.SetCallbackUrl(callbackUrl)
.UseAutoIncrementTrackingNumber()
.SetYekPayData(yekPay =>
{
// Required: the currencies and the customer's details
yekPay.FromCurrencyCode = ...;
yekPay.ToCurrencyCode = ...;
yekPay.FirstName = "...";
// ...
})
.UseYekPay();
});