{"id":20038711,"url":"https://github.com/defra/epr-payment-facade","last_synced_at":"2026-05-13T06:02:19.509Z","repository":{"id":236085985,"uuid":"791825181","full_name":"DEFRA/epr-payment-facade","owner":"DEFRA","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T10:45:32.000Z","size":485,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-29T10:56:59.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-25T12:53:12.000Z","updated_at":"2024-10-28T16:28:48.000Z","dependencies_parsed_at":"2024-05-13T12:33:57.766Z","dependency_job_id":"78c07d23-963b-4164-a082-2bfc57b9a22b","html_url":"https://github.com/DEFRA/epr-payment-facade","commit_stats":null,"previous_names":["defra/epr-payment-facade"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fepr-payment-facade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fepr-payment-facade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fepr-payment-facade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fepr-payment-facade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/epr-payment-facade/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241469213,"owners_count":19968009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T10:32:08.252Z","updated_at":"2026-05-13T06:02:19.483Z","avatar_url":"https://github.com/DEFRA.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epr-payment-facade\n\n\n## Description\nService Facade to calculate fees and manage payment records for EPR\n\n## Getting Started\n\n### Prerequisites\n- EPR Payment Service - https://github.com/DEFRA/epr-payment-service\n- .NET 8 SDK\n- Visual Studio or Visual Studio Code\n- GovPayService API Key\n\n### Installation\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/DEFRA/epr-payment-facade.git\n    ```\n2. Navigate to the project directory:\n    ```bash\n    cd \\src\\EPR.Payment.Facade\n    ```\n3. Restore the dependencies:\n    ```bash\n    dotnet restore\n    ```\n\n### Configuration\nThe application uses appsettings.json for configuration. For development, use appsettings.Development.json.\n\nReplace the BearerToken below with your GovPayService API Key\n\n#### Sample \nappsettings.Development.json\n\n```\n{\n    \"Logging\": {\n        \"LogLevel\": {\n            \"Default\": \"Information\",\n            \"Microsoft.AspNetCore\": \"Warning\"\n        }\n    },\n    \"AzureAdB2C\": {\n        \"Instance\": \"https://xxxxxxx.b2clogin.com\",\n        \"Domain\": \"xxxxxxx.onmicrosoft.com\",\n        \"ClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n        \"SignUpSignInPolicyId\": \"B2C_1A_EPR_SignUpSignIn\",\n        \"Scopes\": \"https://xxxxxxx.onmicrosoft.com/epr-dev-payments-facade/payment-service\"\n    },\n    \"Services\": {\n        \"PaymentServiceHealthCheck\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"health\"\n        },\n        \"PaymentService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"v1\",\n            \"HttpClientName\": \"payment_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"GovPayService\": {\n            \"Url\": \"https://publicapi.payments.service.gov.uk\",\n            \"EndPointName\": \"v1\",\n            \"BearerToken\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"ServiceClientId\": \"TEST\"\n        },\n        \"ProducerFeesService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"producer_fees_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"ComplianceSchemeFeesService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"compliance_scheme_fees_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"OfflinePaymentService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"offline_payment_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"OfflinePaymentServiceV2\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v2\",\n            \"HttpClientName\": \"offline_payment_service_v2_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"RegistrationFeesService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"registration_fees_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"ProducerResubmissionFeesService\": {\n            \"Url\": \"https://devrwdwebwab425.azurewebsites.net/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"producer_resubmission_fees_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        },\n        \"RexExpoAccreditationFeesService\": {\n            \"Url\": \"https://localhost:7107/\",\n            \"EndPointName\": \"api/v1\",\n            \"HttpClientName\": \"rexexpo_accreditation_fees_service_client\",\n            \"ServiceClientId\": \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n        }\n    },\n    \"PaymentServiceOptions\": {\n        \"ReturnUrl\": \"https://localhost:7274/GovPayCallback\",\n        \"Description\": \"Static payment description\",\n        \"ErrorUrl\": \"https://localhost:7274/\"\n    },\n    \"AllowedOrigins\": [\n        \"https://localhost:7166\",\n        \"https://card.payments.service.gov.uk\"\n    ],\n    \"AllowedHosts\": \"*\",\n    \"FeatureManagement\": {\n        \"EnableOnlinePaymentsFeature\": true,\n        \"EnablePaymentInitiation\": true,\n        \"EnablePaymentCompletion\": true,\n        \"EnableProducersFeesFeature\": true,\n        \"EnableProducersFeesCalculation\": true,\n        \"EnableProducerResubmissionFee\": true,\n        \"EnableComplianceSchemeFeature\": true,\n        \"EnableComplianceSchemeFees\": true,\n        \"EnableHomePage\": true,\n        \"EnableProducersResubmissionFeesFeature\": true,\n        \"EnableResubmissionComplianceSchemeFeature\": true,\n        \"EnableResubmissionFeesCalculation\": true,\n        \"EnableOfflinePaymentsFeature\": true,\n        \"EnableOfflinePayment\": true,\n        \"EnableOfflinePaymentV2\": true,\n        \"EnableAuthenticationFeature\": false,\n        \"EnableReprocessorOrExporterRegistrationFeesFeature\": true,\n        \"EnableReprocessorOrExporterRegistrationFeesCalculation\": true,\n        \"EnableReprocessorOrExporterAccreditationFeesFeature\": true,\n        \"EnableReprocessorOrExporterAccreditationFeesCalculation\": true\n    }\n}\n\n```\n\n### Building the Application\n1. Navigate to the project directory:\n    ```bash\n    cd \\src\\EPR.Payment.Facade\n    ```\n\n2. To build the application:\n    ```bash\n    dotnet build\n    ```\n\n### Running the Application\n1. Navigate to the project directory:\n    ```bash\n    cd \\src\\EPR.Payment.Facade\n    ```\n \n2. To run the service locally:\n    ```bash\n    dotnet run\n    ```\n\n3. Launch Browser:\n\n    Service Health Check:\n    [https://localhost:7166/health](https://localhost:7166/health)\n\n    Swagger:\n    [https://localhost:7166/swagger/index.html](https://localhost:7166/swagger/index.html)\n    \n    Sample Test UI:\n    [https://localhost:7166/index.html](https://localhost:7166/index.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fepr-payment-facade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fepr-payment-facade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fepr-payment-facade/lists"}