Skip to content

Commit

Permalink
fix related order id prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ghermans committed Nov 7, 2023
1 parent de04e27 commit 4e1b615
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Payment/MultiSafePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,14 @@ public function getRedirectUrl()
session(['order' => $order]);

$orderId = $order->id;
$randomOrderId = core()->getConfigData('sales.payment_methods.multisafepay.prefix') . $orderId;
$orderPrefix = core()->getConfigData('sales.payment_methods.multisafepay.prefix');


if (isset($orderPrefix)) {
$randomOrderId = core()->getConfigData('sales.payment_methods.multisafepay.prefix') . $orderId;
} else {
$randomOrderId = $orderId;
}

$multiSafepaySdk = new Sdk($this->apiKey, $this->productionMode ?? false);

Expand Down

0 comments on commit 4e1b615

Please sign in to comment.