diff --git a/.github/workflows/sylius.yaml b/.github/workflows/sylius.yaml index 30cde6ff..fbf898ac 100644 --- a/.github/workflows/sylius.yaml +++ b/.github/workflows/sylius.yaml @@ -116,7 +116,7 @@ jobs: run: 'vendor/bin/behat --strict --no-interaction -f progress || vendor/bin/behat --strict -vvv --no-interaction --rerun' if: 'always() && steps.end-of-setup-sylius.outcome == ''success''' - - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: logs diff --git a/doc/authorized_payment.md b/doc/authorized_payment.md index 188e7024..c682cfa0 100644 --- a/doc/authorized_payment.md +++ b/doc/authorized_payment.md @@ -8,7 +8,7 @@ The payment is authorized and the capture can be done later. ## Activation -On the payment method configuration, you can enable the deferred catpure feature. +On the payment method configuration, you can enable the deferred capture feature. ![admin_deferred_capture_feature.png](images/admin_deferred_capture_feature.png) @@ -48,6 +48,8 @@ winzou_state_machine: For example, if you want to trigger the capture when an order is shipped, you can create a callback on the `sylius_order_shipping` state machine. +File: `config/packages/winzou_state_machine.yaml` + ```yaml winzou_state_machine: sylius_order_shipping: @@ -59,6 +61,8 @@ winzou_state_machine: args: ["object"] ``` +File : `src/StateMachine/CaptureOrderProcessor.php` + ```php