Skip to content

Commit

Permalink
Release 5.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrososa committed Jul 12, 2024
1 parent 41cd180 commit 726a28a
Show file tree
Hide file tree
Showing 59 changed files with 340 additions and 650 deletions.
20 changes: 5 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# 6.1.5
- Support for Shopware 6.6.3.1 and Vue 3
# 5.0.11
- Fixed plugin upgrade dependency error

# 6.1.4
- Improved plugin's settings form
- Support for Shopware 6.6.2.0

# 6.1.3
# 5.0.10
- Solvency check support for Powerpay and MF Group Invoice payment methods
- Improved handling of abandoned transactions

# 6.1.2
# 5.0.9
- Fixed redirect to confirmation page after reload

# 6.1.1
- Fixed deprecated OrderNotFoundException

# 6.1.0
# 5.0.8
- Fixed checkout issues after deactivating/activating plugin
- Fixed plugin uninstall action
- Fixed invoice payment method email function when order is shipped

# 6.0.0
- Support for Shopware 6.6

# 5.0.7
- Fix for refunds when a discount code is used

Expand Down
20 changes: 5 additions & 15 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# 6.1.5
- Unterstützung von Shopware 6.6.3.1 und Vue 3
# 5.0.11
- Plugin-Upgrade-Abhängigkeitsfehler behoben

# 6.1.4
- Das Einstellungsformular des Plugins wurde verbessert
- Unterstützung von Shopware 6.6.2.0

# 6.1.3
# 5.0.10
- Unterstützung der Bonitätsprüfung für die Zahlungsmethoden Powerpay und MF Group Invoice
- Verbesserte Handhabung abgebrochener Transaktionen

# 6.1.2
# 5.0.9
- Die Weiterleitung zur Bestätigungsseite nach dem Neuladen wurde behoben

# 6.1.1
- Fixed deprecated OrderNotFoundException

# 6.1.0
# 5.0.8
- Checkout-Probleme nach dem Deaktivieren/Aktivieren des Plugins behoben
- Plugin-Deinstallationsaktion behoben
- Die E-Mail-Funktion für die Rechnungszahlungsmethode beim Versand der Bestellung wurde korrigiert

# 6.0.0
- Unterstützung von Shopware 6.6

# 5.0.7
- Fix für Rückerstattungen, wenn ein Rabattcode verwendet wird

Expand Down
23 changes: 7 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@
PostFinanceCheckout Payment for Shopware 6
=============================

The PostFinanceCheckout Payment plugin wraps around the PostFinanceCheckout API. This library facilitates your interaction with various services such as transactions.
Please note that this plugin is for versions 6.5 and 6.6. For the 6.4 plugin please visit [our Shopware 6.4 plugin](https://github.com/pfpayments/shopware-6-4).
The PostFinanceCheckout Payment plugin wraps around the PostFinanceCheckout API. This library facilitates your interaction with various services such as transactions. Please not this plugin is for version 6.5.
For the 6.4 plugin please visit https://github.com/pfpayments/shopware-6-4

## Requirements

- Shopware 6.5.x or Shopware 6.6.x. See table below.
- PHP minimum version supported by the each shop version.

## Supported versions

___________________________________________________________________________________
| Shopware 6 version | Plugin major version | Supported until |
|-------------------------------|------------------------|------------------------|
| Shopware 6.6.x | 6.x | Further notice |
| Shopware 6.5.x | 5.x | October 2024 |
-----------------------------------------------------------------------------------
- PHP 7.4 - 8.2
- Shopware 6.5.x

## Installation

Expand Down Expand Up @@ -53,7 +44,7 @@ Uncompress the zip file you download, and include the autoloader in your project

```bash
# unzip to ShopwareInstallDir/custom/plugins/PostFinanceCheckoutPayment
composer require postfinancecheckout/sdk 4.2.0
composer require postfinancecheckout/sdk 4.2.2
php bin/console plugin:refresh
php bin/console plugin:install --activate --clearCache PostFinanceCheckoutPayment
```
Expand All @@ -71,8 +62,8 @@ tail -f var/log/postfinancecheckout_payment*.log

## Documentation

[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-6/6.1.5/docs/en/documentation.html)
[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-6/5.0.11/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/pfpayments/shopware-6/blob/master/LICENSE.txt) for more information.
Please see the [license file](https://github.com/pfpayments/shopware-6/blob/master/LICENSE.txt) for more information.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
}
},
"conflict": {
"shopware/administration": "<6.6.0.0,>=7",
"shopware/storefront": "<6.6.0.0,>=7"
"shopware/administration": "<6.5.0.0,>=7",
"shopware/storefront": "<6.5.0.0,>=7"
},
"description": "PostFinanceCheckout integration for Shopware 6",
"extra": {
Expand Down Expand Up @@ -56,11 +56,11 @@
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": ">=8.2",
"shopware/core": "6.6.*",
"shopware/storefront": "6.6.*",
"postfinancecheckout/sdk": "4.2.0"
"php": ">=7.4",
"shopware/core": "6.5.*",
"shopware/storefront": "6.5.*",
"postfinancecheckout/sdk": "4.2.2"
},
"type": "shopware-platform-plugin",
"version": "6.1.5"
"version": "5.0.11"
}
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/shopware-6/releases/tag/6.1.5/">
<a href="https://github.com/pfpayments/shopware-6/releases/tag/5.0.11/">
Source
</a>
</li>
Expand Down
47 changes: 28 additions & 19 deletions src/Core/Api/Configuration/Controller/ConfigurationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
use Psr\Log\LoggerInterface;
use Shopware\Core\{
Framework\Context,
Framework\Log\Package};
Framework\Routing\Annotation\RouteScope,};
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\{
HttpFoundation\JsonResponse,
HttpFoundation\Request,
HttpFoundation\Response,
Routing\Attribute\Route};
Routing\Annotation\Route};
use PostFinanceCheckoutPayment\Core\{
Api\OrderDeliveryState\Service\OrderDeliveryStateService,
Api\PaymentMethodConfiguration\Service\PaymentMethodConfigurationService,
Expand All @@ -26,9 +26,8 @@
* This class handles web calls that are made via the PostFinanceCheckoutPayment settings page.
*
* @package PostFinanceCheckoutPayment\Core\Api\Config\Controller
* @Route(defaults={"_routeScope"={"api"}})
*/
#[Package('system-settings')]
#[Route(defaults: ['_routeScope' => ['api']])]
class ConfigurationController extends AbstractController {

/**
Expand Down Expand Up @@ -101,10 +100,12 @@ public function setLogger(LoggerInterface $logger): void
* @param \Shopware\Core\Framework\Context $context
* @return \Symfony\Component\HttpFoundation\JsonResponse
*
* @Route(
* "/api/_action/postfinancecheckout/configuration/set-postfinancecheckout-as-sales-channel-payment-default",
* name="api.action.postfinancecheckout.configuration.set-postfinancecheckout-as-sales-channel-payment-default",
* methods={"POST"}
* )
*/
#[Route("/api/_action/postfinancecheckout/configuration/set-postfinancecheckout-as-sales-channel-payment-default",
name: "api.action.postfinancecheckout.configuration.set-postfinancecheckout-as-sales-channel-payment-default",
methods: ['POST'])]
public function setPostFinanceCheckoutAsSalesChannelPaymentDefault(Request $request, Context $context): JsonResponse
{
$salesChannelId = $request->request->get('salesChannelId');
Expand All @@ -123,10 +124,12 @@ public function setPostFinanceCheckoutAsSalesChannelPaymentDefault(Request $requ
* @throws \PostFinanceCheckout\Sdk\Http\ConnectionException
* @throws \PostFinanceCheckout\Sdk\VersioningException
*
* @Route(
* "/api/_action/postfinancecheckout/configuration/register-web-hooks",
* name="api.action.postfinancecheckout.configuration.register-web-hooks",
* methods={"POST"}
* )
*/
#[Route("/api/_action/postfinancecheckout/configuration/register-web-hooks",
name: "api.action.postfinancecheckout.configuration.register-web-hooks",
methods: ['POST'])]
public function registerWebHooks(Request $request): JsonResponse
{
$settings = $this->settingsService->getSettings();
Expand Down Expand Up @@ -154,10 +157,12 @@ public function registerWebHooks(Request $request): JsonResponse
* @throws \PostFinanceCheckout\Sdk\Http\ConnectionException
* @throws \PostFinanceCheckout\Sdk\VersioningException
*
* @Route(
* "/api/_action/postfinancecheckout/configuration/check-api-connection",
* name="api.action.postfinancecheckout.configuration.check-api-connection",
* methods={"POST"}
* )
*/
#[Route("/api/_action/postfinancecheckout/configuration/check-api-connection",
name: "api.action.postfinancecheckout.configuration.check-api-connection",
methods: ['POST'])]
public function checkApiConnection(Request $request): JsonResponse
{
$spaceId = (int)$request->request->getInt('spaceId');
Expand Down Expand Up @@ -186,10 +191,12 @@ public function checkApiConnection(Request $request): JsonResponse
* @param \Shopware\Core\Framework\Context $context
* @return \Symfony\Component\HttpFoundation\JsonResponse
*
* @Route(
* "/api/_action/postfinancecheckout/configuration/synchronize-payment-method-configuration",
* name="api.action.postfinancecheckout.configuration.synchronize-payment-method-configuration",
* methods={"POST"}
* )
*/
#[Route("/api/_action/postfinancecheckout/configuration/synchronize-payment-method-configuration",
name: "api.action.postfinancecheckout.configuration.synchronize-payment-method-configuration",
methods: ['POST'])]
public function synchronizePaymentMethodConfiguration(Request $request, Context $context): JsonResponse
{
$settings = $this->settingsService->getSettings();
Expand Down Expand Up @@ -221,10 +228,12 @@ public function synchronizePaymentMethodConfiguration(Request $request, Context
* @param \Shopware\Core\Framework\Context $context
* @return \Symfony\Component\HttpFoundation\JsonResponse
*
* @Route(
* "/api/_action/postfinancecheckout/configuration/install-order-delivery-states",
* name="api.action.postfinancecheckout.configuration.install-order-delivery-states",
* methods={"POST"}
* )
*/
#[Route("/api/_action/postfinancecheckout/configuration/install-order-delivery-states",
name: "api.action.postfinancecheckout.configuration.install-order-delivery-states",
methods: ['POST'])]
public function installOrderDeliveryStates(Context $context): JsonResponse
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Shopware\Core\Framework\Context;
use Symfony\Component\{
Console\Command\Command,
Console\Attribute\AsCommand,
Console\Input\InputInterface,
Console\Output\OutputInterface};
use PostFinanceCheckoutPayment\Core\Api\OrderDeliveryState\Service\OrderDeliveryStateService;
Expand All @@ -16,9 +15,13 @@
*
* @package PostFinanceCheckoutPayment\Core\Api\OrderDeliveryState\Command
*/
#[AsCommand(name: 'postfinancecheckout:order-delivery-states:install')]
class OrderDeliveryStateCommand extends Command {

/**
* @var string
*/
protected static $defaultName = 'postfinancecheckout:order-delivery-states:install';

/**
* @var \PostFinanceCheckoutPayment\Core\Api\OrderDeliveryState\Service\OrderDeliveryStateService
*/
Expand All @@ -31,7 +34,7 @@ class OrderDeliveryStateCommand extends Command {
*/
public function __construct(OrderDeliveryStateService $orderDeliveryStateService)
{
parent::__construct();
parent::__construct(self::$defaultName);
$this->orderDeliveryStateService = $orderDeliveryStateService;
}

Expand All @@ -56,4 +59,4 @@ protected function configure()
->setHelp('This command installs PostFinanceCheckoutPayment extra delivery states.');
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Shopware\Core\Framework\Context;
use Symfony\Component\{
Console\Command\Command,
Console\Attribute\AsCommand,
Console\Input\InputInterface,
Console\Output\OutputInterface};
use PostFinanceCheckoutPayment\Core\Api\PaymentMethodConfiguration\Service\PaymentMethodConfigurationService;
Expand All @@ -16,9 +15,13 @@
*
* @package PostFinanceCheckoutPayment\Core\Api\PaymentMethodConfiguration\Command
*/
#[AsCommand(name: 'postfinancecheckout:payment-method:configuration')]
class PaymentMethodConfigurationCommand extends Command {

/**
* @var string
*/
protected static $defaultName = 'postfinancecheckout:payment-method:configuration';

/**
* @var \PostFinanceCheckoutPayment\Core\Api\PaymentMethodConfiguration\Service\PaymentMethodConfigurationService
*/
Expand All @@ -31,7 +34,7 @@ class PaymentMethodConfigurationCommand extends Command {
*/
public function __construct(PaymentMethodConfigurationService $paymentMethodConfigurationService)
{
parent::__construct();
parent::__construct(self::$defaultName);
$this->paymentMethodConfigurationService = $paymentMethodConfigurationService;
}

Expand Down Expand Up @@ -59,4 +62,4 @@ protected function configure()
->setHelp('This command fetches PostFinanceCheckoutPayment space available payment methods.');
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Shopware\Core\Framework\Context;
use Symfony\Component\{
Console\Command\Command,
Console\Attribute\AsCommand,
Console\Input\InputInterface,
Console\Output\OutputInterface};
use PostFinanceCheckoutPayment\Core\Util\PaymentMethodUtil;
Expand All @@ -16,9 +15,13 @@
*
* @package PostFinanceCheckoutPayment\Core\Api\PaymentMethodConfiguration\Command
*/
#[AsCommand(name: 'postfinancecheckout:payment-method:default')]
class PaymentMethodDefaultCommand extends Command {

/**
* @var string
*/
protected static $defaultName = 'postfinancecheckout:payment-method:default';

/**
* @var \PostFinanceCheckoutPayment\Core\Util\PaymentMethodUtil
*/
Expand All @@ -31,7 +34,7 @@ class PaymentMethodDefaultCommand extends Command {
*/
public function __construct(PaymentMethodUtil $paymentMethodUtil)
{
parent::__construct();
parent::__construct(self::$defaultName);
$this->paymentMethodUtil = $paymentMethodUtil;
}

Expand All @@ -58,4 +61,4 @@ protected function configure()
->setHelp('This command updates PostFinanceCheckoutPayment as default payment method for all SalesChannels.');
}

}
}
Loading

0 comments on commit 726a28a

Please sign in to comment.