codex has reworked checkout, but frontend doesnt work
This commit is contained in:
@@ -129,6 +129,12 @@ class MarketingController extends Controller
|
||||
public function purchaseWizard(Request $request, $packageId)
|
||||
{
|
||||
$package = Package::findOrFail($packageId)->append(['features', 'limits']);
|
||||
$packageOptions = Package::where('type', $package->type)
|
||||
->orderBy('price')
|
||||
->get()
|
||||
->map(function ($candidate) {
|
||||
return $candidate->append(['features', 'limits']);
|
||||
});
|
||||
$stripePublishableKey = config('services.stripe.key');
|
||||
$privacyHtml = view('legal.datenschutz-partial', ['locale' => app()->getLocale()])->render();
|
||||
|
||||
@@ -136,6 +142,7 @@ class MarketingController extends Controller
|
||||
|
||||
$response = Inertia::render('marketing/PurchaseWizard', [
|
||||
'package' => $package,
|
||||
'packageOptions' => $packageOptions,
|
||||
'stripePublishableKey' => $stripePublishableKey,
|
||||
'privacyHtml' => $privacyHtml,
|
||||
])->toResponse($request);
|
||||
|
||||
Reference in New Issue
Block a user