Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
296d7eb
Update
KommandHub Jun 7, 2026
9fabd69
Add split payment transaction.
KommandHub Jun 7, 2026
e6284f6
Implement Bank data collection and verification.
KommandHub Jun 9, 2026
212cc2c
Implement refund feature.
KommandHub Jun 15, 2026
8c51fbb
Refactor and add tests.
KommandHub Jun 16, 2026
83e285b
Refactor.
KommandHub Jun 16, 2026
8e4a040
Add PaystackCurrencyHelper.
KommandHub Jun 16, 2026
9718f42
Update
KommandHub Jun 16, 2026
44d93f8
Refactor refund admin UI.
KommandHub Jun 17, 2026
497d19a
Update.
KommandHub Jun 17, 2026
666f72d
Change directory structure.
KommandHub Jun 17, 2026
ac7b1a3
Add tests
KommandHub Jun 17, 2026
5a9c951
Update admin template
KommandHub Jun 17, 2026
8c64ffd
Relocate and refactor WebhookController and tests.
KommandHub Jun 18, 2026
51512ab
Refactor
KommandHub Jun 18, 2026
ef2a339
Fix lint issues
KommandHub Jun 18, 2026
8497058
Update
KommandHub Jun 18, 2026
e15f496
Update README.md
KommandHub Jun 18, 2026
b30934d
Refactor KommandhubPaystackSW class
KommandHub Jun 25, 2026
c731ac1
Restructure translation files.
KommandHub Jun 25, 2026
ccbbab0
Introduce custom logger class
KommandHub Jun 25, 2026
949344f
Refactor
KommandHub Jun 25, 2026
e4dba48
Refactor
KommandHub Jun 25, 2026
c0336d5
Fix tests
KommandHub Jun 25, 2026
5a90f86
Fix linting issues
KommandHub Jun 25, 2026
a8d59ea
Refactor.
KommandHub Jun 26, 2026
8f0797b
refactor: remove foundation dependency and internalize core logic
KommandHub Jul 12, 2026
afa1af9
refactor: remove foundation dependency and internalize core logic
KommandHub Jul 12, 2026
28846bf
Merge remote-tracking branch 'origin/develop' into develop
KommandHub Jul 12, 2026
33a3fac
refactor: reorganize plugin into feature-first architecture
KommandHub Jul 13, 2026
4cd9338
fix(admin): harden Paystack refund flow and start Meteor migration
KommandHub Jul 13, 2026
2ffa824
feat: add dedicated ACL permission for Paystack refunds
KommandHub Jul 13, 2026
bb82176
fix: resolve PHPStan internal errors, ESLint warnings and update vali…
KommandHub Jul 13, 2026
8a16746
docs: overhaul README and optimize composer discoverability metadata
KommandHub Jul 13, 2026
4a68069
fix(ci): drop phpstan scanDirectories hack that breaks CI
KommandHub Jul 13, 2026
6f58d09
Update.
KommandHub Jul 13, 2026
2708946
ci: make the 100% coverage gate achievable in the no-kernel CI
KommandHub Jul 13, 2026
2693b09
refactor: remove African currency and language migrations
KommandHub Jul 13, 2026
765f59f
feat: reach 100% test coverage and harden webhook refund processing
KommandHub Jul 14, 2026
f10e0f0
docs: correct currency and language support claims
KommandHub Jul 14, 2026
7f6f7f4
fix(money): fail closed instead of assuming NGN, and assert money inv…
KommandHub Jul 14, 2026
e1b2968
fix(client): surface Paystack error responses instead of discarding them
KommandHub Jul 14, 2026
c16f208
chore(release): downgrade to 0.9.0-beta.1 pending sandbox/live valida…
KommandHub Jul 15, 2026
335f8cd
fix(build): make prepare work for pre-releases and reruns
KommandHub Jul 16, 2026
a2cf315
docs: rename CHANGELOG_en-GB.md to CHANGELOG.md
KommandHub Jul 16, 2026
d158521
build: add shopware-cli to the plugin test container
KommandHub Jul 16, 2026
9e15294
fix(storefront): namespace bank block names to avoid plugin collisions
KommandHub Jul 16, 2026
8acf395
chore(branding): clarify third-party status and remove third-party logos
KommandHub Jul 19, 2026
6e3982b
chore(license): relicense from MIT to Apache-2.0
KommandHub Jul 19, 2026
b798e5d
chore(release): 0.9.0-beta.2
KommandHub Jul 19, 2026
488248c
chore: reconcile develop with the squashed 0.9.0-beta.1 on main
KommandHub Jul 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# The image installs tooling only — nothing from this directory is copied into
# it — so the build context can be empty. Without this, `docker compose build`
# would ship vendor/, node_modules/ and .git to the Docker daemon on every build
# for no reason. The Dockerfile itself is read separately and is unaffected.
#
# If a COPY of plugin sources is ever added to the Dockerfile, un-ignore exactly
# what it needs rather than deleting this file.
*
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ venv/
/build/
/out/

# Compiled assets that `make zip` (shopware-cli extension zip) regenerates into
# the source tree during its storefront/admin build. They are build output, not
# source, and must not be committed from a dev checkout.
/src/Storefront/Resources/public/

# SQL dumps
*.sql
*.sqlite
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 0.9.0-beta.2

Second pre-release. Still for internal development, QA and sandbox/staging
testing; not yet submitted to the Shopware Store.

- Debug logging is now resolved per sales channel. `enableDebugging` and the log levels are ordinary plugin settings, so a merchant can scope them to a single sales channel; previously they were only read from the global scope, so enabling debugging on one sales channel produced no output at all.
- Storefront bank-verification template blocks are namespaced, so they no longer collide with other plugins that extend the same account templates.
- Relicensed from MIT to the Apache License 2.0, adding an explicit patent grant, an explicit reservation of trademark rights, and a `NOTICE` file that carries attribution into forks.
- The plugin now states clearly that it is an independent, third-party integration and is not affiliated with or endorsed by Paystack. Added a trademark and branding policy (`TRADEMARKS.md`).
- Replaced the third-party logos used as the plugin and administration icons with KommandHub branding.
- Build tooling: `make prepare` now works for pre-release versions and on repeat runs, and the test container ships `shopware-cli` for plugin validation.

---

# 0.9.0-beta.1

Pre-release for internal development, QA and sandbox/staging testing. Not yet
submitted to the Shopware Store. The public API and namespaces may still
change before `1.0.0`.

- Paystack payment for Shopware 6: card, bank transfer, USSD and mobile money.
- Payment verification checks status, amount and currency before an order is marked paid.
- Refunds from the order detail page, including partial refunds, with a server-side over-refund guard.
- Dedicated "Paystack refund" admin permission that can be assigned to roles (depends on the order editor permission).
- Webhook handling for `charge.success`, `refund.pending` and `refund.processed`, with signature verification.
- Bank-account verification in the customer account (account resolution via Paystack).
- Correct amount handling for every currency Paystack supports, including zero- and three-decimal currencies (e.g. XOF, RWF, KWD). The plugin does not create currencies or languages in the shop.
- Plugin interface translated into English, German and French.
- Configurable logging, sandbox/live mode and a minimum refund amount.
- Supports Shopware 6.6 and 6.7.
14 changes: 14 additions & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 0.9.0-beta.2

Zweite Vorabversion. Weiterhin für interne Entwicklung, QA und Sandbox-/
Staging-Tests; noch nicht im Shopware Store eingereicht.

- Die Debug-Protokollierung wird jetzt pro Verkaufskanal ausgewertet. `enableDebugging` und die Log-Level sind normale Plugin-Einstellungen und lassen sich je Verkaufskanal setzen; bisher wurden sie nur global gelesen, sodass die Aktivierung für einen einzelnen Verkaufskanal wirkungslos blieb.
- Die Template-Blöcke der Bankverifizierung im Storefront sind jetzt eindeutig benannt und kollidieren nicht mehr mit anderen Plugins, die dieselben Konto-Templates erweitern.
- Lizenzwechsel von MIT zur Apache License 2.0: mit ausdrücklicher Patentlizenz, ausdrücklichem Markenvorbehalt und einer `NOTICE`-Datei, die die Urheberangaben in Forks weiterträgt.
- Das Plugin weist nun deutlich darauf hin, dass es eine unabhängige Drittanbieter-Integration ist und nicht mit Paystack verbunden oder von Paystack unterstützt wird. Ergänzt um eine Marken- und Branding-Richtlinie (`TRADEMARKS.md`).
- Die als Plugin- und Administrations-Icon verwendeten fremden Logos wurden durch KommandHub-Branding ersetzt.
- Build-Werkzeuge: `make prepare` funktioniert jetzt auch mit Vorabversionen und bei wiederholten Läufen, und der Testcontainer enthält `shopware-cli` für die Plugin-Validierung.

---

# 0.9.0-beta.1

Vorabversion für interne Entwicklung, QA und Sandbox-/Staging-Tests. Noch
Expand Down
16 changes: 0 additions & 16 deletions CHANGELOG_en-GB.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG_fr-FR.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 0.9.0-beta.2

Deuxième version préliminaire. Toujours destinée au développement interne, à
l'assurance qualité et aux tests sandbox/staging ; pas encore soumise au
Shopware Store.

- La journalisation de débogage est désormais résolue par canal de vente. `enableDebugging` et les niveaux de journalisation sont des réglages de plugin ordinaires, configurables par canal de vente ; ils n'étaient auparavant lus qu'au niveau global, de sorte que l'activation sur un seul canal restait sans effet.
- Les blocs de template de la vérification bancaire côté storefront sont désormais préfixés et n'entrent plus en conflit avec d'autres plugins étendant les mêmes templates de compte.
- Passage de la licence MIT à la licence Apache 2.0 : concession de brevet explicite, réserve explicite des droits de marque et fichier `NOTICE` transmettant l'attribution aux forks.
- Le plugin indique désormais clairement qu'il s'agit d'une intégration indépendante et tierce, non affiliée à Paystack ni approuvée par Paystack. Ajout d'une politique de marque et d'image (`TRADEMARKS.md`).
- Les logos tiers utilisés comme icônes du plugin et de l'administration ont été remplacés par l'identité visuelle KommandHub.
- Outils de build : `make prepare` fonctionne désormais avec les versions préliminaires et lors d'exécutions répétées, et le conteneur de test embarque `shopware-cli` pour la validation du plugin.

---

# 0.9.0-beta.1

Version préliminaire pour le développement interne, l'assurance qualité et les
Expand Down
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

Contributions are **welcome** and will be fully **credited**.

## Licensing of contributions

This project is licensed under the [Apache License 2.0](LICENSE). Under Section 5
of that license, **any contribution you submit is provided under the same
license**, unless you explicitly state otherwise. You retain the copyright to
your contribution.

We use the **Developer Certificate of Origin (DCO)** rather than a Contributor
License Agreement — a one-line assertion, added by signing off your commits,
that you have the right to submit the code under the project license:

```bash
git commit -s -m "fix: correct refund balance rounding"
```

`-s` appends a `Signed-off-by:` line using your configured Git identity. The full
text of what you are certifying is at <https://developercertificate.org>.

## Trademarks

The code license does **not** grant rights to the KommandHub name or logo. If you
fork and redistribute your own version, you must rebrand it. See
[TRADEMARKS.md](TRADEMARKS.md).

## Branching Strategy (GitHub Flow)

Expand Down
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# syntax=docker/dockerfile:1

# shopware-cli, for validating this plugin from inside its own test container.
#
# It is published as a purpose-built image containing nothing but the static Go
# binary (~50 MB, multi-arch: amd64 and arm64). Copying the binary out of it is
# the leanest install available: no apt source to add, no curl/gpg tooling to
# install, no archive to clean up, and a single layer. The alternative — the
# full shopware/shopware-cli:<version> image — is ~1.25 GB to pull for one file.
#
# ":bin" tracks the latest stable release, which is what this environment wants:
# validation should reflect what the Shopware Store runs today. The trade-off is
# that a rebuild can pick up a newer CLI. Pin it for a reproducible build by
# passing a digest:
#
# docker compose build \
# --build-arg SHOPWARE_CLI_IMAGE=shopware/shopware-cli:bin@sha256:<digest>
ARG SHOPWARE_CLI_IMAGE=shopware/shopware-cli:bin

FROM ${SHOPWARE_CLI_IMAGE} AS shopware-cli

FROM dockware/shopware:6.7.8.0

# Root is needed to write into /usr/local/bin.
USER root

# /usr/local/bin is already on PATH for every user and shell, so no PATH edit is
# needed for `shopware-cli` to be callable directly.
COPY --from=shopware-cli /shopware-cli /usr/local/bin/shopware-cli

# Fail the build — not the first `make validate-plugin` — if the binary is
# missing, not executable, or built for the wrong architecture.
RUN chmod +x /usr/local/bin/shopware-cli \
&& shopware-cli --version

# Restore the image's declared default user, or the container would run as root.
#
# It must be "dockware" specifically, not "www-data". They share uid 33, so the
# two look interchangeable — but dockware's entrypoint escalates with sudo, and
# the sudo rights are granted to the dockware account. Setting USER www-data
# starts the container as the same uid under a name sudo has no rule for, and
# boot dies with "sudo: a password is required".
USER dockware
Loading
Loading