Make paid order handling more flexible

Created on 29 November 2023, about 1 year ago

As noted in the linked issue, some aspects of paid order handling are currently hardcoded:

* The list of states that should not be considered paid for free orders - draft and canceled.
* When an order should consider itself paid, more generally.

A paid order dispatches an event indicating such, so controlling when this happens is useful.

Options:
Consider adding a new event that subscribers can use to modify the logic and states for when an order "is paid".
Consider whether an admin form is needed so site builders can set the states to exclude from the "is paid" condition.

The event subscriber approach is probably more flexible but both options can be explored.

✨ Feature request
Status

Active

Version

3.0

Component

Order

Created by

πŸ‡ΊπŸ‡ΈUnited States john.oltman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @john.oltman
  • Issue was unassigned.
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    It would also be very helpful to have this as flag exposed to views, so that you can filter orders by their "paid" state.

Production build 0.71.5 2024