Skip to content

Commit

Permalink
switching to stripe checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
idugan100 committed Aug 23, 2024
1 parent 576eaed commit 2142f32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/Http/Controllers/BillingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2142f32

Please sign in to comment.