#aabycereno
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- aabycereno, 3 days ago, 9 messages
Happy to help, can you show me how you are trying to redirect?
wait I will send a picture
ok, so im making an Ecommerce website for dropshipping. I think my code looks good. but its not getting redirected to stripe along with the cart object.
so in my frontEnd react: axios.post(http://localhost:8000/api/checkout, {carts : cart});
I am passing the cart thru laravel API. my route is ok
Route::post("/checkout", [StripeController::class, "Checkout"]);
i tried to return redirect()->away($session->url) still error
What error do you get from those?
i get 500 internal server error
at first i tried to return redirect()->away($session->url)
so i get the url from the session
Is the 500 error coming from Stripe or is your server throwing the 500 error?
doesnt work, so i tried passing the sessionid to the frontend and tried to stripe promise() redirecttocheckout(sessionid)
i actually dont know, i tried using postman and its getting the cart object, but when I add stripe, its getting error
maybe the installation of stripe? or maybe i missed something?
btw im using react frontend, and laravel backend
I think figuring out where the 500 error is coming from is the next step to solving this. Where exactly do you see it? Do your browser dev tools show this error or is it something in your server logs maybe?
hmm... ok i will try again