Service to calculate fees and manage payment records for EPR
- .NET 8 SDK
- Visual Studio or Visual Studio Code
- MSSQL
- Clone the repository:
git clone https://github.com/DEFRA/epr-payment-service.git
- Navigate to the project directory:
cd \src\EPR.Payment.Service
- Restore the dependencies:
dotnet restore
The application uses appsettings.json for configuration. For development, use appsettings.Development.json.
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
}
}
-
Navigate to the project directory:
cd \src\EPR.Payment.Service
-
To build the application:
dotnet build
-
Navigate to the project directory:
cd \src\EPR.Payment.Service
-
To run the service locally:
dotnet run
-
Launch Browser:
Service Health Check:
Swagger: