From 540a9ebbc616e8bd7ca46cf7d9dc0dfb8cc75af0 Mon Sep 17 00:00:00 2001 From: Georgi Gabrovski Date: Mon, 13 Apr 2020 10:03:58 +0300 Subject: [PATCH 1/3] Add recipe for otobul/epaybg-bundle --- .../1/config/packages/otobul_epaybg.yaml | 9 +++++++++ .../1/config/routes/otobul_epaybg.yaml | 3 +++ otobul/epaybg-bundle/1/manifest.json | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml create mode 100644 otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml create mode 100644 otobul/epaybg-bundle/1/manifest.json diff --git a/otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml b/otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml new file mode 100644 index 00000000..edb8c795 --- /dev/null +++ b/otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml @@ -0,0 +1,9 @@ +otobul_epaybg: + # Identification number of the merchant + min: '%env(OTOBUL_EPAYBG_MIN)%' + + # The secret word of the merchant + secret: '%env(OTOBUL_EPAYBG_SECRET)%' + + # If true all requests will be sent to ePay.bg’s Demo System + isDemo: '%env(bool:OTOBUL_EPAYBG_IS_DEMO)%' diff --git a/otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml b/otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml new file mode 100644 index 00000000..1e6fe676 --- /dev/null +++ b/otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml @@ -0,0 +1,3 @@ +otobul_epaybg: + resource: '@OtobulEpaybgBundle/Resources/config/routes.xml' + prefix: /webhook/epaybg diff --git a/otobul/epaybg-bundle/1/manifest.json b/otobul/epaybg-bundle/1/manifest.json new file mode 100644 index 00000000..c3f481c1 --- /dev/null +++ b/otobul/epaybg-bundle/1/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Otobul\\EpaybgBundle\\OtobulEpaybgBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "OTOBUL_EPAYBG_MIN": "YOUR_EPAYBG_MIN", + "OTOBUL_EPAYBG_SECRET": "YOUR_EPAYBG_SECRET", + "OTOBUL_EPAYBG_IS_DEMO": true + } +} From 17edfdbfcb6409104edbccf68c7128dc9cdc7bd3 Mon Sep 17 00:00:00 2001 From: Georgi Gabrovski Date: Mon, 13 Apr 2020 10:17:20 +0300 Subject: [PATCH 2/3] Fix not valid JSON error recipe for otobul/epaybg-bundle --- otobul/epaybg-bundle/1/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otobul/epaybg-bundle/1/manifest.json b/otobul/epaybg-bundle/1/manifest.json index c3f481c1..4667e727 100644 --- a/otobul/epaybg-bundle/1/manifest.json +++ b/otobul/epaybg-bundle/1/manifest.json @@ -8,6 +8,6 @@ "env": { "OTOBUL_EPAYBG_MIN": "YOUR_EPAYBG_MIN", "OTOBUL_EPAYBG_SECRET": "YOUR_EPAYBG_SECRET", - "OTOBUL_EPAYBG_IS_DEMO": true + "OTOBUL_EPAYBG_IS_DEMO": "true" } } From d677c66bced089f68c34fa2c4b9be901332f9290 Mon Sep 17 00:00:00 2001 From: Georgi Gabrovski Date: Mon, 13 Apr 2020 10:21:04 +0300 Subject: [PATCH 3/3] Fix version "1" not valid error --- .../epaybg-bundle/{1 => 1.0}/config/packages/otobul_epaybg.yaml | 0 otobul/epaybg-bundle/{1 => 1.0}/config/routes/otobul_epaybg.yaml | 0 otobul/epaybg-bundle/{1 => 1.0}/manifest.json | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename otobul/epaybg-bundle/{1 => 1.0}/config/packages/otobul_epaybg.yaml (100%) rename otobul/epaybg-bundle/{1 => 1.0}/config/routes/otobul_epaybg.yaml (100%) rename otobul/epaybg-bundle/{1 => 1.0}/manifest.json (100%) diff --git a/otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml b/otobul/epaybg-bundle/1.0/config/packages/otobul_epaybg.yaml similarity index 100% rename from otobul/epaybg-bundle/1/config/packages/otobul_epaybg.yaml rename to otobul/epaybg-bundle/1.0/config/packages/otobul_epaybg.yaml diff --git a/otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml b/otobul/epaybg-bundle/1.0/config/routes/otobul_epaybg.yaml similarity index 100% rename from otobul/epaybg-bundle/1/config/routes/otobul_epaybg.yaml rename to otobul/epaybg-bundle/1.0/config/routes/otobul_epaybg.yaml diff --git a/otobul/epaybg-bundle/1/manifest.json b/otobul/epaybg-bundle/1.0/manifest.json similarity index 100% rename from otobul/epaybg-bundle/1/manifest.json rename to otobul/epaybg-bundle/1.0/manifest.json