From d4f4b794d9481c59c5d77f08b645c8ec0f10661e Mon Sep 17 00:00:00 2001 From: aarongerig Date: Tue, 4 Jun 2024 10:20:21 +0200 Subject: [PATCH] chore: only allow PHP 8.1 and higher and complete installation docs --- README.md | 21 ++++++++++++++++++- composer.json | 2 +- .../PimcorePayumPayrexxExtension.php | 2 +- .../PayrexxException.php | 20 ------------------ 4 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 src/PimcorePayumPayrexxBundle/PayrexxException.php diff --git a/README.md b/README.md index 5e10dfd..6f6d8a9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,28 @@ ![Payum Payrexx Bundle](docs/images/github_banner.png) -A Payum extension to provide [Payrexx](https://www.payrexx.com) payment integration. +This bundle activates the [Payrexx](https://www.payrexx.com) PaymentGateway in CoreShop. +It requires the [instride/payum-payrexx](https://github.com/instride-ch/payum-payrexx) +package, which will be installed automatically. ## Installation +#### 1. Composer ```bash $ composer require instride/pimcore-payum-payrexx ``` + +#### 2. Register the bundle +```php +// config/bundles.php + + ['all' => true], +]; +``` + +#### 3. Configuration +Go to `CoreShop` → `PaymentProviders` and add a new Provider. Select `payrexx` from `type` +and fill out the required fields at the bottom. diff --git a/composer.json b/composer.json index 2943438..4ee8ec4 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "instride/payum-payrexx": "^1.0" }, "config": { diff --git a/src/PimcorePayumPayrexxBundle/DependencyInjection/PimcorePayumPayrexxExtension.php b/src/PimcorePayumPayrexxBundle/DependencyInjection/PimcorePayumPayrexxExtension.php index 26d7c20..78576c0 100644 --- a/src/PimcorePayumPayrexxBundle/DependencyInjection/PimcorePayumPayrexxExtension.php +++ b/src/PimcorePayumPayrexxBundle/DependencyInjection/PimcorePayumPayrexxExtension.php @@ -25,7 +25,7 @@ class PimcorePayumPayrexxExtension extends Extension /** * @throws \Exception */ - public function load(array $config, ContainerBuilder $container): void + public function load(array $configs, ContainerBuilder $container): void { $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yaml'); diff --git a/src/PimcorePayumPayrexxBundle/PayrexxException.php b/src/PimcorePayumPayrexxBundle/PayrexxException.php deleted file mode 100644 index 344e9b7..0000000 --- a/src/PimcorePayumPayrexxBundle/PayrexxException.php +++ /dev/null @@ -1,20 +0,0 @@ -