Skip to content

Commit

Permalink
Merge pull request #236 from mollie/5.8.2
Browse files Browse the repository at this point in the history
5.8.2
  • Loading branch information
Marvin-Magmodules authored Jul 28, 2023
2 parents aaa4948 + 6b841fa commit e3e8589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/community/Mollie/Mpm/Model/Client/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function startTransaction(Mage_Sales_Model_Order $order)
$additionalData = $order->getPayment()->getAdditionalInformation();

$transactionId = $order->getMollieTransactionId();
if (!empty($transactionId) && !preg_match('/^ord_\w+$/', $transactionId)) {
if (!empty($transactionId) && substr($transactionId, 0, 4) != 'ord_') {
$payment = $mollieApi->payments->get($transactionId);
return $payment->getCheckoutUrl();
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Mollie/Mpm/Model/Mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function processTransaction($orderId, $type = 'webhook', $paymentToken =
try {
$connection->beginTransaction();

if ($method == 'order' && preg_match('/^ord_\w+$/', $transactionId)) {
if ($method == 'order' && substr($transactionId, 0, 4) == 'ord_') {
return $this->ordersApi->processTransaction($order, $type, $paymentToken);
} else {
return $this->paymentsApi->processTransaction($order, $type, $paymentToken);
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Mollie/Mpm/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<config>
<modules>
<Mollie_Mpm>
<version>5.8.1</version>
<version>5.8.2</version>
</Mollie_Mpm>
</modules>
<global>
Expand Down

0 comments on commit e3e8589

Please sign in to comment.