#ABU_G
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ are you seeing any errors in your logs?
No errors in the logs, but I cant see the post request when I see in the dashboard.
Actually in the console.log I can see the following:
Error: Checkout URL is malformed
How are you passing the URL to your mobile device, is it getting altered in that process?
its a php application. I am using the following:
$checkout_session = \Stripe\Checkout\Session::create ..
Then when the session is created I am redircting to $checkout_session->url
Gotcha, so just to make sure I'm understanding clearly, this is a PHP site that you built that you're now trying to access from a mobile device?
well its a php laravel site I am building. I have an html form for booking which sends a request to the php api. The api then creates a Stripe session and redirect to the session->url
There are also some diverse warnings, not sure whether they are relavant
Are you using Laravel Cashier as well, or just the Laravel framework?
Just laravel framework. I am integrating stripe using.
"stripe/stripe-php": "^10.3"
This is the code snippet I am using.
Is this behavior consistent across multiple mobile devices with varying operating systems/browsers?
I only tried it on iOS safari and chrome. Same behaviour.
hmmm, its the same behaviour on safari on mac.
it also fails
Is that Mac different from the desktop you originally tested this from where it worked?
hmmm, let me deep dive into the code and I might figure it out. I will test a bit more and get back to you. Thanks! ๐
I fixed it! it seems that having both location header and return redirect created a weird link on safari (the same link appended to itself). Removing location header fixed the problem.
Glad to hear you got to the bottom of it!