Skip to content

Commit

Permalink
Release 29-05-2024
Browse files Browse the repository at this point in the history
- fix: invoke get payment with sales channel context
  • Loading branch information
pk-nexigroup committed May 29, 2024
1 parent b013a88 commit b2edc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facade/AsyncPaymentFinalizePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ public function finalize(AsyncPaymentTransactionStruct $transaction, Request $re
{
$transactionId = $transaction->getOrderTransaction()->getId();
$context = $salesChannelContext->getContext();
$salesChannelId = $salesChannelContext->getSalesChannelId();

$netsTransactionId = $transaction
->getOrderTransaction()
->getCustomFieldsValue('nets_easy_payment_details')['transaction_id'];

try {
$payment = $this->easyApiService->getPayment($netsTransactionId);
$payment = $this->easyApiService->getPayment($netsTransactionId, $salesChannelId);
$orderId = $transaction->getOrder()->getId();
$salesChannelId = $salesChannelContext->getSalesChannelId();
$chargeNow = $this->configService->getChargeNow($salesChannelId);

$this->orderRepository->update(
Expand Down

0 comments on commit b2edc7f

Please sign in to comment.