T1neu: Unternehmer-Pflicht-Checkbox im Checkout, protokolliert mit AGB-Version
B2B-Gate (AGB v0.6 par. 1 Abs. 4): Das Buchungs-Modal verlangt vor jedem Stripe-Checkout die Bestaetigung 'Ich bestelle in Ausuebung meiner gewerblichen oder selbstaendigen beruflichen Taetigkeit (par. 14 BGB)'. - booking_confirmations: user, Buchungstyp/-ref, AGB-Version, IP, confirmed_at (Nachweis laut Datenschutz Abschnitt 7) - Checkout-Link erscheint erst nach der Checkbox; CheckoutController verlangt zusaetzlich serverseitig eine zeitnahe Bestaetigung (30 Min.) fuer Abo/Einzel-PM/Credit-Topup — Direktaufrufe laufen ins Leere - config/legal.php als zentrale AGB-Versionsquelle (Seite + Protokoll, Uebergangsloesung bis zum legal_documents-System E3) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
99ab47ba1f
commit
8916bcce7c
9 changed files with 311 additions and 7 deletions
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Unternehmer-Bestätigung je Buchungsvorgang (T1neu, AGB v0.6 § 1 Abs. 4):
|
||||
* Der Kunde bestätigt vor dem Stripe-Checkout, in Ausübung seiner
|
||||
* gewerblichen oder selbständigen beruflichen Tätigkeit zu handeln.
|
||||
* Protokolliert werden Zeitpunkt, IP und die akzeptierte AGB-Version —
|
||||
* das B2B-Gate stützt sich auf diesen Nachweis.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('booking_confirmations', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
||||
// subscription | single_pm | credit_pack
|
||||
$table->string('booking_type', 40);
|
||||
// Plan-Slug bzw. Pack-Key; null bei Einzel-PM.
|
||||
$table->string('booking_ref', 80)->nullable();
|
||||
$table->string('interval', 20)->nullable();
|
||||
$table->string('agb_version', 40);
|
||||
$table->string('ip', 45)->nullable();
|
||||
$table->timestamp('confirmed_at');
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['user_id', 'confirmed_at']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('booking_confirmations');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue