Skip to content

Conversation

@zulquer
Copy link
Collaborator

@zulquer zulquer commented Jan 8, 2026

This pull request introduces a major refactor and rebranding of the MultiSafepay payment integration module, along with several configuration and workflow improvements. The primary focus is on renaming the module from payment_multisafepay_official to payment_multisafepay, adding a manifest, introducing a constants file, updating workflow and linting configurations, and adding German translations.

Module Renaming and Manifest Addition:

  • The module has been renamed from payment_multisafepay_official to payment_multisafepay throughout the codebase, including file and directory names, internal references, and asset paths, to standardize naming and improve maintainability. [1] [2]
  • A new manifest file payment_multisafepay/__manifest__.py has been added, specifying metadata, dependencies, hooks, and data files for the module.

New Features and Improvements:

  • A new constants file payment_multisafepay/const.py has been introduced, centralizing payment method prefixes, supported currencies, status mappings, and lists of special payment methods.
  • German translations have been added in payment_multisafepay/i18n/de_DE.po to support localization for German-speaking users.

Configuration and Workflow Updates:

  • The release workflow in .github/workflows/release.yml has been updated to use the new module name and correct script paths, ensuring the release process aligns with the new structure. [1] [2]
  • Linting configurations have been improved:
    • .pylintrc-mandatory now disables additional checks related to manifest author and readme requirements, and enables a more tailored set of pylint rules. [1] [2] [3]
    • .ruff.toml now ignores complexity and exception chaining warnings, and disables the line length check for more flexible code formatting.

Summary of Most Important Changes:

Module Refactor and Rebranding

  • Renamed the module from payment_multisafepay_official to payment_multisafepay across all files, references, and asset paths for consistency and clarity. [1] [2]
  • Added a new manifest file __manifest__.py to define module metadata, dependencies, and data files.

New Features and Localization

  • Introduced const.py to centralize constants such as supported currencies and payment status mappings.
  • Added German translation file i18n/de_DE.po for improved localization.

CI/CD and Linting Configuration

  • Updated release workflow to use the new module name and correct script paths, ensuring proper packaging and release. [1] [2]
  • Improved linting configurations in .pylintrc-mandatory and .ruff.toml for more relevant and flexible code quality checks. [1] [2] [3] [4]

- Split 'payment_multisafepay_official' into 'payment_multisafepay' (core) and 'payment_multisafepay_enhaced' (features).
- Update webhook controller to process request data as text (UTF-8) compatible with SDK fix (ensure_ascii=False).
- Remove deprecated official module files.
- Restore accidental deletion of code in payment_provider.py and fix return placement.
- Correct translation placeholders to use named arguments instead of positionals.
- Add timeout to requests.get call in utils.py.
- Remove print statement in tests.
- Merge duplicate disable keys in .pylintrc-mandatory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants