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 16, 2020
1 parent dd7a744 commit 58da2eb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,24 @@ 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 with `offline` gateway.
In case your custom refund logic allows a different type of gateway (for example `stripe`), you should modify the specific parameter,
as shown below:

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

Online refund logic should be implemented if you need it.
As the first try for the possible customization, you can check out `Sylius\RefundPlugin\Event\UnitsRefunded` event.

## 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 58da2eb

Please sign in to comment.