Skip to content

companieshouse/penalty-payment-web

Repository files navigation

Penalty Payment Web

Web application for handling payments of penalties. This application is written using the Spring Boot Java framework.

  • Retrieves payable penalties from the Penalty Payment Service
  • Displays payable penalties and redirects to the Payments Service to take payment.

Requirements

In order to run this Web App locally you will need to install:

Getting Started

  1. Configure your service if you want to override any of the defaults.
  2. Run make
  3. Run ./start.sh

Configuration

Key Description
PPS_PAY_WEB_PORT The port of the penalty-payment-web application
HUMAN_LOG For human readable logs
CH_BANK_ACC_NAME Bacs payments - Account name (late filing penalty: A)
CH_BANK_SORT_CODE Bacs payments - Sort code (late filing penalty: A)
CH_BANK_ACC_NUM Bacs payments - Account number (late filing penalty: A)
CH_BANK_IBAN Overseas payments - IBAN (late filing penalty: A)
CH_BANK_SWIFT_CODE Overseas payments - SWIFT code (late filing penalty: A)
CH_SANCTIONS_BANK_ACC_NAME Bacs payments - Account name (sanction: P)
CH_SANCTIONS_BANK_SORT_CODE Bacs payments - Sort code (sanction: P)
CH_SANCTIONS_BANK_ACC_NUM Bacs payments - Account number (sanction: P)
CH_SANCTIONS_BANK_IBAN Overseas payments - IBAN (sanction: P)
CH_SANCTIONS_BANK_SWIFT_CODE Overseas payments - SWIFT code (sanction: P)
FEATURE_FLAG_PENALTY_REF_ENABLED_SANCTIONS_191224 Feature flag to enable Penalty Payment for Sanctions
PENALTY_PAYMENT_MATOMO_START_NOW_BUTTON_GOAL_ID Matomo Goal Id: PAY A PENALTY - Start Now Button
PENALTY_PAYMENT_MATOMO_PAY_ANOTHER_PENALTY_GOAL_ID Matomo Goal Id: PAY A PENALTY - Pay another penalty

Web Pages

Page Address
Start page for Penalty Payment Service /late-filing-penalty
What does the penalty reference start with? /late-filing-penalty/ref-starts-with

Terraform ECS

What does this code do?

The code present in this repository is used to define and deploy a dockerised container in AWS ECS. This is done by calling a module from terraform-modules. Application specific attributes are injected and the service is then deployed using Terraform via the CICD platform 'Concourse'.

Application specific attributes Value Description
ECS Cluster company-requests ECS cluster (stack) the service belongs to
Load balancer {env}-chs-chgovuk The load balancer that sits in front of the service
Concourse pipeline Pipeline link
Pipeline code
Concourse pipeline link in shared services

Contributing

Testing

  • Ensure the terraform runner local plan executes without issues. For information on terraform runners please see the Terraform Runner Quickstart guide.
  • If you encounter any issues or have questions, reach out to the team on the #platform slack channel.

Vault Configuration Updates

  • Any secrets required for this service will be stored in Vault. For any updates to the Vault configuration, please consult with the #platform team and submit a workflow request.

Useful Links