Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Aug 5, 2024
1 parent eb9767d commit 8fba834
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@
```yaml
webgriffe_sylius_klarna_payments_plugin:
resource: "@WebgriffeSyliusKlarnaPaymentsPlugin/config/shop_routing.php"
prefix: /{_locale}
requirements:
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$

webgriffe_sylius_klarna_payments_plugin_ajax:
resource: "@WebgriffeSyliusKlarnaPaymentsPlugin/config/shop_ajax_routing.php"

sylius_shop_payum_cancel:
resource: "@PayumBundle/Resources/config/routing/cancel.xml"

```
**NB:** you should avoid to have any param prefix in your routes, otherwise the plugin won't work properly.
**NB:** The file shop_routing needs to be after the prefix _locale, so that messages can be displayed in the right
language. You should also include the cancel routes from the Payum bundle if you do not have it already!

5. Run:
```bash
Expand Down

0 comments on commit 8fba834

Please sign in to comment.