#kqtipow-php
1 messages · Page 1 of 1 (latest)
no, I mean, when you look at the logs of your PHP server
in any case maybe the problem is 'price' => $body->pricee, ? Shouldn't that be 'price' => $body->priceId, perhaps since that's what your frontend JSON passes?
but overall you can't really work on this without being able to investigate the error logs on the server as a PHP developer, so I'd suggest getting familiar with that overall as a first step
I will check log now
I think the php file should work and echo session without called by js, should work just by open it at browser
not sure what you mean really
I can't see how it would work if you open the script in the browser
since then you're not passing any POST body, so $body wouldn't exist
if I make simple php file
<?php
echo 2;
And open it by browser should see 2, I mean same for checkout session, i should see id i think
It's strange php log does not show anything
again, no idea what you mean. A script that creates a CheckoutSession by reading POST data(assuming that's what $body is) and calls an external API is much more complicated than something that just echoes a number and has many more places where it could go wrong and need to be debugged by the developer writing the code, there's no comparison at all
ok, thanks
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Hmm, that doesn't look like an error. Looks like the ID for a created Checkout Session?
What's the issue?
Perfect!
Np!