Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion doc/authorized_payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand All @@ -59,6 +61,8 @@ winzou_state_machine:
args: ["object"]
```

File : `src/StateMachine/CaptureOrderProcessor.php`

```php
<?php

Expand Down
Loading