Skip to content

Commit

Permalink
prepare release 1.5.2 (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitzcarsten authored Aug 5, 2021
1 parent cf40675 commit ecd06ff
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiener/mollie-payments-plugin",
"description": "Mollie Payments",
"version": "v1.5.1",
"version": "v1.5.2",
"type": "shopware-platform-plugin",
"license": "MIT",
"authors": [
Expand Down
3 changes: 1 addition & 2 deletions src/Facade/MollieOrderPaymentFlow.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ public function __construct(
public function process(OrderTransactionEntity $transaction, OrderEntity $order, Order $mollieOrder, SalesChannelContext $salesChannelContext): bool
{
$paymentStatus = $this->orderStatusConverter->getMollieStatus($mollieOrder);
$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannelId());

$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannel()->getId());
// this is only mollie payment flow here we are doing failed management here
$this->orderStatusUpdater->updatePaymentStatus($transaction, $paymentStatus, $salesChannelContext->getContext());
$this->orderStatusUpdater->updateOrderStatus($order, $paymentStatus, $settings, $salesChannelContext->getContext());
Expand Down
2 changes: 1 addition & 1 deletion src/Facade/MolliePaymentFinalize.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function finalize(AsyncPaymentTransactionStruct $transactionStruct, Sales

$paymentStatus = $this->orderStatusConverter->getMollieStatus($mollieOrder);
$this->orderStatusUpdater->updatePaymentStatus($transactionStruct->getOrderTransaction(), $paymentStatus, $salesChannelContext->getContext());
$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannelId());
$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannel()->getId());
$this->orderStatusUpdater->updateOrderStatus($order, $paymentStatus, $settings, $salesChannelContext->getContext());

if (MolliePaymentStatus::isFailedStatus($paymentStatus)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MollieApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getClient(?string $salesChannelId = null): MollieApiClient

// @todo Add plugin version variable
$this->apiClient->addVersionString(
'MollieShopware6/1.5.1'
'MollieShopware6/1.5.2'
);
} catch (Exception $e) {
$this->logger->error($e->getMessage(), [$e]);
Expand Down
6 changes: 5 additions & 1 deletion src/Handler/PaymentHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,14 @@ public function finalize(AsyncPaymentTransactionStruct $transaction, Request $re
} catch (CustomerCanceledAsyncPaymentException $exception) {
throw $exception;
} catch (Throwable $exception) {
$e=null;
if ($exception instanceof \Exception) {
$e=$exception;
}
$this->logger->addEntry(
$exception->getMessage(),
$salesChannelContext->getContext(),
$exception,
$e,
null,
Logger::ERROR
);
Expand Down

0 comments on commit ecd06ff

Please sign in to comment.