From 2c78111c2ecdbd92a47061dcb56ee8e376683245 Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Mon, 14 Sep 2026 13:35:08 +0000 Subject: [PATCH] Update Flex endpoint --- RECIPES.md | 1 + ...1bdaff52d198c7e7a24fab9743dba058e7265.json | 79 +++++++++++++++++++ index.json | 3 + jpmmartin.sylius-nmi-plugin.1.0.json | 79 +++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 archived/jpmmartin.sylius-nmi-plugin/f081bdaff52d198c7e7a24fab9743dba058e7265.json create mode 100644 jpmmartin.sylius-nmi-plugin.1.0.json diff --git a/RECIPES.md b/RECIPES.md index 0a7eede9..0856b0d4 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -315,6 +315,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [jolicode/media-bundle](https://packagist.org/packages/jolicode/media-bundle) | [0.4](../../../tree/main/jolicode/media-bundle/0.4) | | [jonathankablan/fast-entity-bundle](https://packagist.org/packages/jonathankablan/fast-entity-bundle) | [2.0](../../../tree/main/jonathankablan/fast-entity-bundle/2.0) | | [jonathanlight/meta-entity-builder-bundle](https://packagist.org/packages/jonathanlight/meta-entity-builder-bundle) | [1.0](../../../tree/main/jonathanlight/meta-entity-builder-bundle/1.0) | +| [jpmmartin/sylius-nmi-plugin](https://packagist.org/packages/jpmmartin/sylius-nmi-plugin) | [1.0](../../../tree/main/jpmmartin/sylius-nmi-plugin/1.0) | | [jrmgx/interactive-bundle](https://packagist.org/packages/jrmgx/interactive-bundle) | [1.0](../../../tree/main/jrmgx/interactive-bundle/1.0) | | [jsor/doctrine-postgis](https://packagist.org/packages/jsor/doctrine-postgis) | [1.7](../../../tree/main/jsor/doctrine-postgis/1.7) | | [jupi/prestashop-webservice-bundle](https://packagist.org/packages/jupi/prestashop-webservice-bundle) | [1.0](../../../tree/main/jupi/prestashop-webservice-bundle/1.0) | diff --git a/archived/jpmmartin.sylius-nmi-plugin/f081bdaff52d198c7e7a24fab9743dba058e7265.json b/archived/jpmmartin.sylius-nmi-plugin/f081bdaff52d198c7e7a24fab9743dba058e7265.json new file mode 100644 index 00000000..16b1f264 --- /dev/null +++ b/archived/jpmmartin.sylius-nmi-plugin/f081bdaff52d198c7e7a24fab9743dba058e7265.json @@ -0,0 +1,79 @@ +{ + "manifests": { + "jpmmartin/sylius-nmi-plugin": { + "manifest": { + "bundles": { + "JpmMartin\\SyliusNmiPlugin\\JpmMartinSyliusNmiPlugin": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "assets/shop/entrypoint.js", + "content": "import '@vendor/jpmmartin/sylius-nmi-plugin/assets/shop/entrypoint';", + "position": "bottom", + "warn_if_missing": true + } + ], + "gitignore": [ + "/config/encryption/*.key", + "!/config/encryption/test.key" + ], + "post-install-output": [ + " * Four things no recipe can do, in this order:", + "", + " yarn add @nmipayments/nmi-pay && yarn build the browser component and the shop build", + " bin/console doctrine:migrations:migrate the plugin's four tables", + "", + " * A key of your own, before the first payment method is saved. The skeleton's test.key is", + " published; point the store at a new path first, then generate \u2014 the generator writes", + " wherever the store points at that moment:", + "", + " .env.local: SYLIUS_PAYMENT_ENCRYPTION_KEY_PATH=%kernel.project_dir%/config/encryption/payment.key", + " bin/console sylius:payment:generate-key", + "", + " * Then Configuration \u2192 Payment methods \u2192 Create \u2192 NMI, and read Testing against the sandbox", + " before the first payment: https://github.com/jpmmartin/SyliusNmiPlugin#readme" + ] + }, + "files": { + "config/packages/jpm_martin_sylius_nmi.yaml": { + "contents": [ + "imports:", + " - { resource: \"@JpmMartinSyliusNmiPlugin/config/config.yaml\" }", + "" + ], + "executable": false + }, + "config/routes/jpm_martin_sylius_nmi.yaml": { + "contents": [ + "jpm_martin_sylius_nmi_shop:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/shop.yaml\"", + "", + "jpm_martin_sylius_nmi_admin:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/admin.yaml\"", + " prefix: /%sylius_admin.path_name%", + "", + "# Required if you want NMI to tell your store what it did. Without it there is no endpoint and", + "# nothing arrives. No prefix: not the locale, not the admin path. See the README's \"Webhooks\".", + "jpm_martin_sylius_nmi_webhook:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/webhook.yaml\"", + "", + "# Required if you turn saved cards on, and harmless if you do not. See the README's \"Saved cards\".", + "jpm_martin_sylius_nmi_shop_account:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/shop_account.yaml\"", + " prefix: /{_locale}/account", + " requirements:", + " _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$", + "" + ], + "executable": false + } + }, + "ref": "f081bdaff52d198c7e7a24fab9743dba058e7265" + } + } +} diff --git a/index.json b/index.json index e9d690f4..72ee2283 100644 --- a/index.json +++ b/index.json @@ -1000,6 +1000,9 @@ "jonathanlight/meta-entity-builder-bundle": [ "1.0" ], + "jpmmartin/sylius-nmi-plugin": [ + "1.0" + ], "jrmgx/interactive-bundle": [ "1.0" ], diff --git a/jpmmartin.sylius-nmi-plugin.1.0.json b/jpmmartin.sylius-nmi-plugin.1.0.json new file mode 100644 index 00000000..16b1f264 --- /dev/null +++ b/jpmmartin.sylius-nmi-plugin.1.0.json @@ -0,0 +1,79 @@ +{ + "manifests": { + "jpmmartin/sylius-nmi-plugin": { + "manifest": { + "bundles": { + "JpmMartin\\SyliusNmiPlugin\\JpmMartinSyliusNmiPlugin": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "assets/shop/entrypoint.js", + "content": "import '@vendor/jpmmartin/sylius-nmi-plugin/assets/shop/entrypoint';", + "position": "bottom", + "warn_if_missing": true + } + ], + "gitignore": [ + "/config/encryption/*.key", + "!/config/encryption/test.key" + ], + "post-install-output": [ + " * Four things no recipe can do, in this order:", + "", + " yarn add @nmipayments/nmi-pay && yarn build the browser component and the shop build", + " bin/console doctrine:migrations:migrate the plugin's four tables", + "", + " * A key of your own, before the first payment method is saved. The skeleton's test.key is", + " published; point the store at a new path first, then generate \u2014 the generator writes", + " wherever the store points at that moment:", + "", + " .env.local: SYLIUS_PAYMENT_ENCRYPTION_KEY_PATH=%kernel.project_dir%/config/encryption/payment.key", + " bin/console sylius:payment:generate-key", + "", + " * Then Configuration \u2192 Payment methods \u2192 Create \u2192 NMI, and read Testing against the sandbox", + " before the first payment: https://github.com/jpmmartin/SyliusNmiPlugin#readme" + ] + }, + "files": { + "config/packages/jpm_martin_sylius_nmi.yaml": { + "contents": [ + "imports:", + " - { resource: \"@JpmMartinSyliusNmiPlugin/config/config.yaml\" }", + "" + ], + "executable": false + }, + "config/routes/jpm_martin_sylius_nmi.yaml": { + "contents": [ + "jpm_martin_sylius_nmi_shop:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/shop.yaml\"", + "", + "jpm_martin_sylius_nmi_admin:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/admin.yaml\"", + " prefix: /%sylius_admin.path_name%", + "", + "# Required if you want NMI to tell your store what it did. Without it there is no endpoint and", + "# nothing arrives. No prefix: not the locale, not the admin path. See the README's \"Webhooks\".", + "jpm_martin_sylius_nmi_webhook:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/webhook.yaml\"", + "", + "# Required if you turn saved cards on, and harmless if you do not. See the README's \"Saved cards\".", + "jpm_martin_sylius_nmi_shop_account:", + " resource: \"@JpmMartinSyliusNmiPlugin/config/routes/shop_account.yaml\"", + " prefix: /{_locale}/account", + " requirements:", + " _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$", + "" + ], + "executable": false + } + }, + "ref": "f081bdaff52d198c7e7a24fab9743dba058e7265" + } + } +}