Skip to content

Commit

Permalink
minor #275 docs: new release (xchopin)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.0-dev branch.

Discussion
----------



Commits
-------

c504dae docs: new release
e823054 docs: change payment requirements
88a8016 docs: change payment requirements
dc36c60 docs: add stripe example
  • Loading branch information
GSadee authored Apr 6, 2021
2 parents e075c71 + dc36c60 commit 11cfe54
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ It is used by `KnpSnappyBundle` and can be configured according to [their documm
1. Require plugin with composer:

```bash
composer require sylius/refund-plugin:1.0.0-RC.7
composer require sylius/refund-plugin:1.0.0-RC.8
```

> Remember to allow community recipes with `composer config extra.symfony.allow-contrib true` or during plugin installation process
Expand Down Expand Up @@ -148,14 +148,15 @@ By default to refund your order, you need to have at least one available payment
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>
```
```yaml
# config/services.yaml
parameters:
sylius_refund.supported_gateways:
- offline
- stripe
```
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.
Expand Down

0 comments on commit 11cfe54

Please sign in to comment.