Fix: Bank transfer orders should stay in awaiting payment
This commit is contained in:
@@ -92,7 +92,14 @@ class OrderPaymentResolutionService
|
||||
}
|
||||
}
|
||||
|
||||
private function advancePastAwaitingPayment(Order $order, string $causeClass): void
|
||||
/**
|
||||
* Also called directly by OrderFulfillmentService::markPaid() for a
|
||||
* bank transfer order — unlike a COD markPaid() (which never touches
|
||||
* status, since nothing was ever awaited), a bank transfer order
|
||||
* genuinely sat at 'awaiting_payment' until this moment, and nothing
|
||||
* else will ever advance it if this doesn't.
|
||||
*/
|
||||
public function advancePastAwaitingPayment(Order $order, string $causeClass): void
|
||||
{
|
||||
if ($order->status !== 'awaiting_payment') {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user