Skip to content

Commit

Permalink
Add the Commerce Weavers Tpay plugin recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Dec 12, 2024
1 parent e95e19b commit cdfcb25
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: "@CommerceWeaversSyliusTpayPlugin/config/config.php" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
commerce_weavers_sylius_tpay_webhook:
resource: "@CommerceWeaversSyliusTpayPlugin/config/routes_webhook.php"

commerce_weavers_sylius_tpay_shop:
resource: "@CommerceWeaversSyliusTpayPlugin/config/routes_shop.php"
prefix: /{_locale}
requirements:
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
12 changes: 12 additions & 0 deletions commerce-weavers/sylius-tpay-plugin/2.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"bundles": {
"CommerceWeavers\\SyliusTpayPlugin\\CommerceWeaversSyliusTpayPlugin": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "IMPORTANT! Replace the `<replace_me>` with a value generated using the `vendor/bin/generate-defuse-key` command",
"PAYUM_CYPHER_KEY": "<replace_me>"
}
}
5 changes: 5 additions & 0 deletions commerce-weavers/sylius-tpay-plugin/2.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@@ -0,0 +1,4 @@
* <fg=blue>IMPORTANT!</> Remember to generate Payum's cypher key with the <comment>vendor/bin/generate-defuse-key</comment>
and add it to your environment variables as <comment>PAYUM_CYPHER_KEY</comment>

* <fg=blue>Read</> the Sylius Payum Plugin documentation at <comment>https://github.com/CommerceWeavers/SyliusTpayPlugin/wiki</>

0 comments on commit cdfcb25

Please sign in to comment.