verpfuschter stand von codex

This commit is contained in:
Codex Agent
2025-10-04 16:38:42 +02:00
parent c87cfb2c10
commit bc6a75961a
23 changed files with 2588 additions and 92 deletions

View File

@@ -123,6 +123,22 @@ class MarketingController extends Controller
return $this->checkout($request, $packageId);
}
/**
* Render the purchase wizard.
*/
public function purchaseWizard(Request $request, $packageId)
{
$package = Package::findOrFail($packageId)->append(['features', 'limits']);
$stripePublishableKey = config('services.stripe.key');
$privacyHtml = view('legal.datenschutz-partial', ['locale' => app()->getLocale()])->render();
return Inertia::render('marketing/PurchaseWizard', [
'package' => $package,
'stripePublishableKey' => $stripePublishableKey,
'paypalClientId' => config('services.paypal.client_id'),
'privacyHtml' => $privacyHtml,
]);
}
/**
* Checkout for Stripe with auth metadata.
*/