#aabycereno

1 messages · Page 1 of 1 (latest)

fleet driftBOT
#

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.

rocky swift
#

Happy to help, can you show me how you are trying to redirect?

misty hinge
#

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

rocky swift
#

What error do you get from those?

misty hinge
#

i get 500 internal server error

#

at first i tried to return redirect()->away($session->url)

#

so i get the url from the session

rocky swift
#

Is the 500 error coming from Stripe or is your server throwing the 500 error?

misty hinge
#

doesnt work, so i tried passing the sessionid to the frontend and tried to stripe promise() redirecttocheckout(sessionid)

misty hinge
#

maybe the installation of stripe? or maybe i missed something?

#

btw im using react frontend, and laravel backend

rocky swift
#

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?

misty hinge
#

hmm... ok i will try again