From 2142f32cd8e7093af81284b086c44871f2167e32 Mon Sep 17 00:00:00 2001 From: idugan100 Date: Fri, 23 Aug 2024 00:19:36 -0400 Subject: [PATCH] switching to stripe checkout --- app/Http/Controllers/BillingController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/BillingController.php b/app/Http/Controllers/BillingController.php index 5d9b2c5..9fd3f1a 100644 --- a/app/Http/Controllers/BillingController.php +++ b/app/Http/Controllers/BillingController.php @@ -6,6 +6,7 @@ use Illuminate\Contracts\View\View; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Redirect; use Symfony\Component\HttpFoundation\BinaryFileResponse; class BillingController extends Controller @@ -17,13 +18,11 @@ public function billing_portal(Request $request): RedirectResponse return $request->user()->redirectToBillingPortal(route('courses.index')); } - public function checkout(Request $request): View + public function checkout(Request $request): RedirectResponse { TrackUsage::log($request, 'about'); - return view('billing.checkout', [ - 'intent' => auth()->user()->createSetupIntent(), - ]); + return redirect("https://buy.stripe.com/14k9DsbZU2BI6ly7ss"); } public function create_subscription(Request $request): RedirectResponse