Skip to content

Commit d298145

Browse files
authored
Fix error while marking offline order as paid. (#1007)
1 parent 93ca943 commit d298145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/app/Services/Domain/Order/MarkOrderAsPaidService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function storeApplicationFeePayment(OrderDomainObject $updatedOrder): vo
182182
applicationFeeAmountMinorUnit: $this->orderApplicationFeeCalculationService->calculateApplicationFee(
183183
accountConfiguration: $config,
184184
order: $updatedOrder,
185-
)->netApplicationFee->toMinorUnit(),
185+
)?->netApplicationFee?->toMinorUnit() ?? 0,
186186
orderApplicationFeeStatus: OrderApplicationFeeStatus::AWAITING_PAYMENT,
187187
paymentMethod: PaymentProviders::OFFLINE,
188188
currency: $updatedOrder->getCurrency(),

0 commit comments

Comments
 (0)