Skip to content

DEFRA/epr-payment-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epr-payment-service

Description

Service to calculate fees and manage payment records for EPR

Getting Started

Prerequisites

  • .NET 8 SDK
  • Visual Studio or Visual Studio Code
  • MSSQL

Installation

  1. Clone the repository:
    git clone https://github.com/DEFRA/epr-payment-service.git
  2. Navigate to the project directory:
    cd \src\EPR.Payment.Service
  3. Restore the dependencies:
    dotnet restore

Configuration

The application uses appsettings.json for configuration. For development, use appsettings.Development.json.

Sample

appsettings.Development.json

{
  "ConnectionStrings": {
    "PaymentConnnectionString": "Data Source=.;Initial Catalog=FeesPayment;Trusted_Connection=true;TrustServerCertificate=true;"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "FeatureManagement": {
    "EnablePaymentsFeature": true,
    "EnablePaymentStatusInsert": true,
    "EnablePaymentStatusUpdate": true,
    "EnableGetPaymentByExternalPaymentId": true,
    "EnableRegistrationFeesFeature": true,
    "EnableProducerResubmissionAmount": true,
    "EnableRegistrationFeesCalculation": true
  }
}

Building the Application

  1. Navigate to the project directory:

    cd \src\EPR.Payment.Service
  2. To build the application:

    dotnet build

Running the Application

  1. Navigate to the project directory:

    cd \src\EPR.Payment.Service
  2. To run the service locally:

    dotnet run
  3. Launch Browser:

    Service Health Check:

    https://localhost:7107/health

    Swagger:

    https://localhost:7107/swagger/index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages