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 338f69ad08..4a74919943 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" (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" * `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);