Basic implementation of payment methods
This commit is contained in:
1 parent
6c9281516e
commit
ab3d526217
13 files changed
+34
-15
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ class RemovePaymentMethodUsageAction
|
||||
public function execute(AvailablePaymentMethod $availablePaymentMethod): void
|
||||
{
|
||||
foreach ($availablePaymentMethod->events()->get() as $event) {
|
||||
$event->paymentMethods()->detach($availablePaymentMethod->id);
|
||||
$event->paymentMethods()->detach($availablePaymentMethod->slug);
|
||||
|
||||
$remainingActive = $event->paymentMethods()->where('active', true)->count();
|
||||
if ($remainingActive === 0 && $event->registration_allowed) {
|
||||
|
||||
Reference in new issue
Block a user