From 08eeb1f2cf358a5e77077d3597c2cf529354a9b6 Mon Sep 17 00:00:00 2001 From: Daniel Kirkland <167744225+d-kirkland@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:02:29 +0200 Subject: [PATCH 1/2] docs: use the process transaction action (6.7) in the state machine guide Co-Authored-By: Claude Sonnet 5.5 --- .../plugins/checkout/order/using-the-state-machine.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/plugins/plugins/checkout/order/using-the-state-machine.md b/guides/plugins/plugins/checkout/order/using-the-state-machine.md index 0b337cc399..d288a9f643 100644 --- a/guides/plugins/plugins/checkout/order/using-the-state-machine.md +++ b/guides/plugins/plugins/checkout/order/using-the-state-machine.md @@ -88,19 +88,19 @@ The possible transition values here are: * `authorize`: Will result in "authorized" * `refund_partially`: Will result in "refunded\_partially" * `refund`: Will result in "refunded" -* `do_pay`: Will result in "in\_progress" +* `process`: Will result in "in\_progress" (the former `do_pay` action is deprecated since 6.7 and will be removed in 6.8) * `paid`: Will result in "paid" * `paid_partially`: Will result in "paid\_partially" * `remind`: Will result in "reminded" * `cancel`: Will result in "cancelled" -Here's an example on how to set the order transaction from `open` to `in_progress` via the `pay` action: +Here's an example on how to set the order transaction from `open` to `in_progress` via the `process` action: ```php $this->stateMachineRegistry->transition(new Transition( OrderTransactionDefinition::ENTITY_NAME, '', - 'do_pay', + 'process', 'stateId' ), $context); ``` @@ -273,7 +273,7 @@ $this->orderTransactionStateHandler->cancel('', $context); // $this->orderTransactionStateHandler->refund('', $context); // $this->orderTransactionStateHandler->fail('', $context); // $this->orderTransactionStateHandler->paid('', $context); -// $this->orderTransactionStateHandler->payPartially('', $context); +// $this->orderTransactionStateHandler->paidPartially('', $context); // $this->orderTransactionStateHandler->process('', $context); // $this->orderTransactionStateHandler->refundPartially('', $context); // $this->orderTransactionStateHandler->remind('', $context); From 196ec8fba46f9ad03c55cbfb698aace83e21bcf3 Mon Sep 17 00:00:00 2001 From: Daniel Kirkland <167744225+d-kirkland@users.noreply.github.com> Date: Tue, 13 Oct 2026 16:58:32 +0200 Subject: [PATCH 2/2] docs: state the 6.7.0.0 rename and 6.8.0 removal of the do_pay action precisely Co-Authored-By: Claude Sonnet 5.5 --- .../plugins/plugins/checkout/order/using-the-state-machine.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/plugins/plugins/checkout/order/using-the-state-machine.md b/guides/plugins/plugins/checkout/order/using-the-state-machine.md index d288a9f643..e144aaa19c 100644 --- a/guides/plugins/plugins/checkout/order/using-the-state-machine.md +++ b/guides/plugins/plugins/checkout/order/using-the-state-machine.md @@ -88,7 +88,7 @@ The possible transition values here are: * `authorize`: Will result in "authorized" * `refund_partially`: Will result in "refunded\_partially" * `refund`: Will result in "refunded" -* `process`: Will result in "in\_progress" (the former `do_pay` action is deprecated since 6.7 and will be removed in 6.8) +* `process`: Will result in "in\_progress" (renamed from `do_pay` in 6.7.0.0; `do_pay` is deprecated and `ACTION_DO_PAY` will be removed in 6.8.0) * `paid`: Will result in "paid" * `paid_partially`: Will result in "paid\_partially" * `remind`: Will result in "reminded"