diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b268ba92d..e10ad9f365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Fixed a bug where sales weren’t respecting site element statuses. ([#3328](https://github.com/craftcms/commerce/issues/3328)) - Fixed a bug where soft-deleted order statuses and line item statuses would not being restored when applying project config changes. ([#3164](https://github.com/craftcms/commerce/issues/3164)) - Fixed a bug where carts weren’t being restored after logging in. +- Fixed a bug where orders with a processing transaction weren’t being completed. ## 4.3.2 - 2023-10-31 diff --git a/src/services/Payments.php b/src/services/Payments.php index 508dbffd64..62e2856d42 100644 --- a/src/services/Payments.php +++ b/src/services/Payments.php @@ -305,7 +305,7 @@ public function processPayment(Order $order, BasePaymentForm $form, ?string &$re return; } - if ($transaction->status !== TransactionRecord::STATUS_SUCCESS) { + if (!in_array($transaction->status, [TransactionRecord::STATUS_SUCCESS, TransactionRecord::STATUS_PROCESSING])) { throw new PaymentException($transaction->message); }