VRT.Payments.Gateways.PayU 8.0.6

dotnet add package VRT.Payments.Gateways.PayU --version 8.0.6                
NuGet\Install-Package VRT.Payments.Gateways.PayU -Version 8.0.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VRT.Payments.Gateways.PayU" Version="8.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VRT.Payments.Gateways.PayU --version 8.0.6                
#r "nuget: VRT.Payments.Gateways.PayU, 8.0.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VRT.Payments.Gateways.PayU as a Cake Addin
#addin nuget:?package=VRT.Payments.Gateways.PayU&version=8.0.6

// Install VRT.Payments.Gateways.PayU as a Cake Tool
#tool nuget:?package=VRT.Payments.Gateways.PayU&version=8.0.6                

VRT.Payments.Gateways.PayU

Basic PayU payment gateway integration for .net 8+ applications.

Registering in DI container

To register PayU integration in your DI container, use the following IServiceCollection extension method:

services.AddPayUPaymentService()

Configuration

The library uses options pattern. Options are read from IConfiguration by default.

Configuring using appsettings.json

The sample configuration of the PayU gateway is provided below. It is configured to default, public PayU Sandobx.

{  
 "PaymentGateways": {
    "PayU": {
      "_comment": "Public Sandbox. If you have external endpoint for your notifications,set NotificationEndpoint value",
      "BaseApiUrl": "https://secure.snd.payu.com",
      "ClientId": "300746",
      "ClientSecret": "2ee86a66e5d97e3fadc400c9f19b065d",
      "SecondKey": "b6ca15b0d1020e8094d9b5f8d163db54",
      "PointOfSellId": "300746",
      "NotificationEndpointUrl": ""
    }
  }
}

💡 NotificationEndpointUrl should be absolute url to your notification handling endpoint

If you do not want to use appsettings configuration, then you can also provide IOptions<PayUOptions> yourself during DI configuration.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.6 107 10/9/2024
8.0.3 100 10/9/2024
8.0.2 95 7/24/2024

Minor non-functional changes