Adding Success Redirect0:00
Now, whenever a user completes his or her order, we want to show a thank you message saying like, hey, thank you for your order, we received your payment. So let's head over to our Stripe checkout creation action and make some adjustments here to facilitate this. So first, we're going to set a success URL, and our user will be redirected here after a successful payment. So we haven't had a route for this yet. So let's head over to our terminal and run php artisan livewire make and create a new component called CheckoutStatus. Next, let's head over to our routes file.
Creating Status Route0:38
component called CheckoutStatus. Next, let's head over to our routes file. Let's create a new route and wire up a component. Now that we have a route defined, we can reference this here. And now there's an option for Stripe to pass along the session ID. So what we can do here is append a custom ID to our string, and Stripe will replace this with the session ID.
