diff --git a/app/core/mypayment/endpoints_mypayment.py b/app/core/mypayment/endpoints_mypayment.py index 7e2f0f318b..7a38aac9b7 100644 --- a/app/core/mypayment/endpoints_mypayment.py +++ b/app/core/mypayment/endpoints_mypayment.py @@ -89,6 +89,7 @@ generate_pdf_from_template, get_core_data, get_file_from_data, + patch_identity_in_text, set_core_data, ) @@ -1491,7 +1492,10 @@ async def get_user_tos( return schemas_mypayment.TOSSignatureResponse( accepted_tos_version=existing_user_payment.accepted_tos_version, latest_tos_version=LATEST_TOS, - tos_content=Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), + tos_content=patch_identity_in_text( + Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), + settings, + ), max_wallet_balance=settings.MYPAYMENT_MAXIMUM_WALLET_BALANCE, ) diff --git a/pyproject.toml b/pyproject.toml index 6bd4018ad4..c22bbfdc7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [{ name = "AEECL ECLAIR" }] # Hyperion follows Semantic Versioning # https://semver.org/ -version = "5.3.7" +version = "5.3.8" requires-python = ">= 3.12, < 3.15" license = "MIT"