Could OrderStatusUpdated and PaymentStatusUpdated include what the status was before the update happened? #1229
leon-fablr
started this conversation in
Feature Requests
Replies: 1 comment
-
I'd accept a PR to include the previous status in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At present they provide the order in question (after the status has been changed) and a paymentStatus/orderStatus property with what the status has been changed to.
Because of this there's no way to make an event handler that handles the change of one particular status to another (e.g. order status 'cart' -> 'placed').
I'd recommend adding a new property for this rather than changing when these events are dispatched or what the second property contains. Doing either of those is probably going to break something.
Beta Was this translation helpful? Give feedback.
All reactions