From a7df129ad6cfbb71dc3150ed5c3ef5923fb47d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Vieilledent?= Date: Mon, 25 Nov 2019 12:28:55 +0100 Subject: [PATCH] Add PaylineBundle --- .../payline-bundle/2.0/config/payline.yaml | 18 ++++++++++++++++++ lolautruche/payline-bundle/2.0/manifest.json | 14 ++++++++++++++ .../payline-bundle/2.0/post-install.txt | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 lolautruche/payline-bundle/2.0/config/payline.yaml create mode 100644 lolautruche/payline-bundle/2.0/manifest.json create mode 100644 lolautruche/payline-bundle/2.0/post-install.txt diff --git a/lolautruche/payline-bundle/2.0/config/payline.yaml b/lolautruche/payline-bundle/2.0/config/payline.yaml new file mode 100644 index 00000000..31ec2ca5 --- /dev/null +++ b/lolautruche/payline-bundle/2.0/config/payline.yaml @@ -0,0 +1,18 @@ +lolautruche_payline: + # Credentials given by Payline. + # Set them as environment variable. + merchant_id: '%env(PAYLINE_MERCHANT_ID)%' + access_key: '%env(PAYLINE_ACCESS_KEY)%' + contract_number: '%env(PAYLINE_CONTRACT_NUMBER)%' + # Payline environment + # e.g. 'homo' for 'Homologation', 'prod' for 'Production', 'int' for 'Integration' + # Valid values are 'homo', 'prod', 'int' and 'dev'. + # Best practice is to define it with PAYLINE_ENVIRONMENT env var. + environment: '%env(PAYLINE_ENVIRONMENT)%' + # Default curreny, as supported by Payline. + # Can be EUR (or €), USD (or $), POUND (or £). + default_currency: '€' + # Route name for the confirmation page the user will be redirected to, once the payment has been processed. + default_confirmation_route: 'route_name_for_confirmation_page' + # Route name for the error page the user will be redirected to if there was an error with the payment. + default_error_route: 'route_name_for_error_page' diff --git a/lolautruche/payline-bundle/2.0/manifest.json b/lolautruche/payline-bundle/2.0/manifest.json new file mode 100644 index 00000000..4dfca9ef --- /dev/null +++ b/lolautruche/payline-bundle/2.0/manifest.json @@ -0,0 +1,14 @@ +{ + "bundles": { + "Lolautruche\\PaylineBundle\\LolautruchePaylineBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "PAYLINE_MERCHANT_ID": "your_payline_merchant_id", + "PAYLINE_ACCESS_KEY": "your_payline_access_key", + "PAYLINE_CONTRACT_NUMBER": "your_payline_contract_number", + "PAYLINE_ENVIRONMENT": "homo" + } +} diff --git a/lolautruche/payline-bundle/2.0/post-install.txt b/lolautruche/payline-bundle/2.0/post-install.txt new file mode 100644 index 00000000..b8a6cbd7 --- /dev/null +++ b/lolautruche/payline-bundle/2.0/post-install.txt @@ -0,0 +1,16 @@ + + You just installed lolautruche/playline-bundle! + What's next? + + + * Use the default storage immediately: + + public function __construct(FilesystemInterface $defaultStorage) + { + ... + } + + * Configure Payline environment variables and settings in config/packages/payline.yaml. + + * Read the documentation at: + https://github.com/lolautruche/LolautruchePaylineBundle/blob/master/Resources/doc/00-index.md