#kqtipow-php

1 messages · Page 1 of 1 (latest)

sweet minnow
#

hi! what's the exact error in your PHP server error logs for the 500?

unique abyss
#

Also get same in console, when fetching this file is being started

sweet minnow
#

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

unique abyss
#

I will check log now

unique abyss
sweet minnow
#

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

unique abyss
#

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

sweet minnow
unique abyss
#

ok, thanks

faint pumice
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

unique abyss
#

I just found in error log

#

Thanks!

faint pumice
#

Hmm, that doesn't look like an error. Looks like the ID for a created Checkout Session?

#

What's the issue?

unique abyss
#

It was solved*

#

I was get wrong with price_id

faint pumice
#

Perfect!

unique abyss
#

I get into PHP documentation and solved

#

Thanks a lot for your help!

faint pumice
#

Np!