From cdfcb25531abbee84d1437a4e0a674343cc2c336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chru=C5=9Bciel?= Date: Thu, 12 Dec 2024 13:57:45 +0100 Subject: [PATCH] Add the Commerce Weavers Tpay plugin recipe --- .../packages/commerce_weavers_tpay_plugin.yaml | 2 ++ .../config/routes/commerce_weavers_tpay_plugin.yaml | 8 ++++++++ .../sylius-tpay-plugin/2.0/manifest.json | 12 ++++++++++++ .../sylius-tpay-plugin/2.0/post-install.txt | 5 +++++ 4 files changed, 27 insertions(+) create mode 100644 commerce-weavers/sylius-tpay-plugin/2.0/config/packages/commerce_weavers_tpay_plugin.yaml create mode 100644 commerce-weavers/sylius-tpay-plugin/2.0/config/routes/commerce_weavers_tpay_plugin.yaml create mode 100644 commerce-weavers/sylius-tpay-plugin/2.0/manifest.json create mode 100644 commerce-weavers/sylius-tpay-plugin/2.0/post-install.txt diff --git a/commerce-weavers/sylius-tpay-plugin/2.0/config/packages/commerce_weavers_tpay_plugin.yaml b/commerce-weavers/sylius-tpay-plugin/2.0/config/packages/commerce_weavers_tpay_plugin.yaml new file mode 100644 index 000000000..5defcc58c --- /dev/null +++ b/commerce-weavers/sylius-tpay-plugin/2.0/config/packages/commerce_weavers_tpay_plugin.yaml @@ -0,0 +1,2 @@ +imports: + - { resource: "@CommerceWeaversSyliusTpayPlugin/config/config.php" } diff --git a/commerce-weavers/sylius-tpay-plugin/2.0/config/routes/commerce_weavers_tpay_plugin.yaml b/commerce-weavers/sylius-tpay-plugin/2.0/config/routes/commerce_weavers_tpay_plugin.yaml new file mode 100644 index 000000000..8b91ee299 --- /dev/null +++ b/commerce-weavers/sylius-tpay-plugin/2.0/config/routes/commerce_weavers_tpay_plugin.yaml @@ -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}))?$ diff --git a/commerce-weavers/sylius-tpay-plugin/2.0/manifest.json b/commerce-weavers/sylius-tpay-plugin/2.0/manifest.json new file mode 100644 index 000000000..241507f29 --- /dev/null +++ b/commerce-weavers/sylius-tpay-plugin/2.0/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "CommerceWeavers\\SyliusTpayPlugin\\CommerceWeaversSyliusTpayPlugin": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "IMPORTANT! Replace the `` with a value generated using the `vendor/bin/generate-defuse-key` command", + "PAYUM_CYPHER_KEY": "" + } +} diff --git a/commerce-weavers/sylius-tpay-plugin/2.0/post-install.txt b/commerce-weavers/sylius-tpay-plugin/2.0/post-install.txt new file mode 100644 index 000000000..47b6b6d54 --- /dev/null +++ b/commerce-weavers/sylius-tpay-plugin/2.0/post-install.txt @@ -0,0 +1,5 @@ +@@ -0,0 +1,4 @@ + * IMPORTANT! Remember to generate Payum's cypher key with the vendor/bin/generate-defuse-key + and add it to your environment variables as PAYUM_CYPHER_KEY + + * Read the Sylius Payum Plugin documentation at https://github.com/CommerceWeavers/SyliusTpayPlugin/wiki