Skip to content

Commit

Permalink
Add update README with refunds payment information
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKasp committed Jan 15, 2020
1 parent dd7a744 commit 96aad09
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ Apart from Events and Commands Refund Plugin is also based on mechanisms derived

Configuration of all elements mentioned above can be found and customized in `config.yml` file.

## Payment requirements

By default to refund your order you need to have at least one available payment method configured as offline gateway.
In case your custom refund logic demands different type of gateway (for example stripe), you need to modify parameters
used in `src/Resources/config/services/provider.xml`

```xml
<parameters>
<parameter key="sylius_refund.supported_gateways" type="collection">
<parameter>offline</parameter>
<parameter>stripe</parameter>
</parameter>
</parameters>
```

After that you will probably want to process this payment, for that you should listen for an event for example `Sylius\RefundPlugin\Event\UnitsRefunded`

## Security issues

If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly.
Expand Down

0 comments on commit 96aad09

Please sign in to comment.