Skip to content

Commit

Permalink
chore(doc): [authorized payment] add glob for mentioned files
Browse files Browse the repository at this point in the history
  • Loading branch information
maxperei committed Feb 21, 2025
1 parent 81f9755 commit cceae47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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 All @@ -33,6 +33,8 @@ It will capture all authorized payments that are older than 6 days.
An authorized payment is in state `AUTHORIZED`.
A capture trigger is placed on the complete transition for such payments.

File: `config/package/winzou_state_machine.yaml`

```yaml
winzou_state_machine:
sylius_payment:
Expand All @@ -48,6 +50,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/package/winzou_state_machine.yaml`

```yaml
winzou_state_machine:
sylius_order_shipping:
Expand All @@ -59,6 +63,8 @@ winzou_state_machine:
args: ["object"]
```

File : src/StateMachine/CaptureOrderProcessor.php

```php
<?php
Expand Down

0 comments on commit cceae47

Please sign in to comment.