Skip to content

Protect saved card deletion with a CSRF token, fix PHP 8.4 nullable deprecations - #27

Merged
anoziere merged 3 commits into
mainfrom
fix/followups
Oct 18, 2026
Merged

anoziere merged 3 commits into
mainfrom
fix/followups

Conversation

@anoziere

Copy link
Copy Markdown
Contributor
  • The saved card deletion route is now POST only and checks a CSRF token (id payplug_card_delete); the payment step renders a form button instead of a link. The card removed is always the one of the logged-in customer.
  • Implicit nullable parameters (Type $x = null) become ?Type $x = null (deprecated in PHP 8.4).
  • Config/routing.xml is kept: it still declares the notification, admin and card routes.

Checked in a Flexy shop with a saved card: GET answers 405, POST without token 403 (card kept), the payment step button deletes the card and leaves other customers' cards alone. PHPStan clean.

@anoziere
anoziere merged commit b63bd42 into main Oct 18, 2026
5 checks passed
@anoziere
anoziere deleted the fix/followups branch October 18, 2026 13:50
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.

1 participant