widerrufsbelehrung hinzugefügt und in den checkout mit eingebunden. refund ins backend eingebaut.

This commit is contained in:
Codex Agent
2025-12-07 11:57:05 +01:00
parent e092f72475
commit 1d3d49e05a
44 changed files with 1143 additions and 71 deletions

View File

@@ -62,6 +62,10 @@ class CheckoutSession extends Model
'discount_breakdown' => 'array',
'expires_at' => 'datetime',
'completed_at' => 'datetime',
'accepted_terms_at' => 'datetime',
'accepted_privacy_at' => 'datetime',
'accepted_withdrawal_notice_at' => 'datetime',
'digital_content_waiver_at' => 'datetime',
'amount_subtotal' => 'decimal:2',
'amount_total' => 'decimal:2',
'amount_discount' => 'decimal:2',

View File

@@ -57,6 +57,10 @@ class Package extends Model
'paddle_snapshot' => 'array',
];
protected $appends = [
'activates_immediately',
];
protected function features(): Attribute
{
return Attribute::make(
@@ -140,4 +144,10 @@ class Package extends Model
'max_events_per_year' => $this->max_events_per_year,
];
}
public function getActivatesImmediatelyAttribute(): bool
{
// Default: Pakete werden nach Kauf sofort freigeschaltet (digitale Dienstleistung).
return true;
}
}