|
|
@@ -133,6 +133,7 @@ class PaymentService
|
|
|
}
|
|
|
|
|
|
$clientPaymentMethod = null;
|
|
|
+
|
|
|
$cardId = null;
|
|
|
|
|
|
if ($paymentMethod === 'credit_card') {
|
|
|
@@ -160,6 +161,7 @@ class PaymentService
|
|
|
}
|
|
|
|
|
|
$serviceAmount = (float) $schedule->total_amount;
|
|
|
+
|
|
|
$platformFee = round($serviceAmount * 0.11, 2);
|
|
|
$grossAmount = round($serviceAmount + $platformFee, 2);
|
|
|
|
|
|
@@ -299,6 +301,10 @@ class PaymentService
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ if ($payment->status === PaymentStatusEnum::PAID) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
return $payment->expires_at !== null
|
|
|
&& $payment->expires_at->isPast();
|
|
|
}
|