From 9ba9c3a5bc3b5942eca8d145ef4296186d3bece3 Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Fri, 11 Sep 2026 15:35:32 +0000 Subject: [PATCH] Create Flex endpoint --- index.json | 20 +++++++ jpmmartin.sylius-nmi-plugin.1.0.json | 79 ++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 index.json create mode 100644 jpmmartin.sylius-nmi-plugin.1.0.json diff --git a/index.json b/index.json new file mode 100644 index 00000000..716402ac --- /dev/null +++ b/index.json @@ -0,0 +1,20 @@ +{ + "aliases": [], + "recipes": { + "jpmmartin/sylius-nmi-plugin": [ + "1.0" + ] + }, + "recipe-conflicts": [], + "versions": [], + "branch": "main", + "is_contrib": true, + "_links": { + "repository": "github.com/symfony/recipes-contrib", + "origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2050/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2050/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} 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" + } + } +}