Skip to content

Commit ecd06ff

Browse files
prepare release 1.5.2 (#175)
1 parent cf40675 commit ecd06ff

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kiener/mollie-payments-plugin",
33
"description": "Mollie Payments",
4-
"version": "v1.5.1",
4+
"version": "v1.5.2",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",
77
"authors": [

src/Facade/MollieOrderPaymentFlow.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public function __construct(
5757
public function process(OrderTransactionEntity $transaction, OrderEntity $order, Order $mollieOrder, SalesChannelContext $salesChannelContext): bool
5858
{
5959
$paymentStatus = $this->orderStatusConverter->getMollieStatus($mollieOrder);
60-
$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannelId());
61-
60+
$settings = $this->settingsService->getSettings($salesChannelContext->getSalesChannel()->getId());
6261
// this is only mollie payment flow here we are doing failed management here
6362
$this->orderStatusUpdater->updatePaymentStatus($transaction, $paymentStatus, $salesChannelContext->getContext());
6463
$this->orderStatusUpdater->updateOrderStatus($order, $paymentStatus, $settings, $salesChannelContext->getContext());

src/Facade/MolliePaymentFinalize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function finalize(AsyncPaymentTransactionStruct $transactionStruct, Sales
7878

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

8484
if (MolliePaymentStatus::isFailedStatus($paymentStatus)) {

src/Factory/MollieApiFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getClient(?string $salesChannelId = null): MollieApiClient
8383

8484
// @todo Add plugin version variable
8585
$this->apiClient->addVersionString(
86-
'MollieShopware6/1.5.1'
86+
'MollieShopware6/1.5.2'
8787
);
8888
} catch (Exception $e) {
8989
$this->logger->error($e->getMessage(), [$e]);

src/Handler/PaymentHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,14 @@ public function finalize(AsyncPaymentTransactionStruct $transaction, Request $re
180180
} catch (CustomerCanceledAsyncPaymentException $exception) {
181181
throw $exception;
182182
} catch (Throwable $exception) {
183+
$e=null;
184+
if ($exception instanceof \Exception) {
185+
$e=$exception;
186+
}
183187
$this->logger->addEntry(
184188
$exception->getMessage(),
185189
$salesChannelContext->getContext(),
186-
$exception,
190+
$e,
187191
null,
188192
Logger::ERROR
189193
);

0 commit comments

Comments
 (0)