Skip to content

A nuget package for Digiflow payment services using .NET6

License

Notifications You must be signed in to change notification settings

ed555009/digiflow-payment

Repository files navigation

Digiflow.Payment

GitHub Build Status Nuget

Coverage Quality Gate Status Reliability Rating Security Rating Vulnerabilities

Installation

dotnet add package Digiflow.Payment

Configuration

Appsettings.json

{
	"Digiflow": {
		"PaymentApi": {
			"BaseUrl": "https://ta.digiflowtech.com",
			"Version": "1.0",
			"MerchantId": "YOUR_MERCHANT_ID",
			"TerminalId": "YOUR_TERMINAL_ID",
			"SignKey": "YOUR_SIGN_KEY"
		}
	}
}

Add services

using Digiflow.Payment.Extensions;

ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
	// this injects as SINGLETON
	services.AddDigiflowPaymentServices(configuration);

	// you can also inject as SCOPED or TRANSIENT by specifying the ServiceLifetime
	services.AddDigiflowPaymentServices(configuration, ServiceLifetime.Scoped);
}

Reference

About

A nuget package for Digiflow payment services using .NET6

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages