#Harena It Llc

1 messages ยท Page 1 of 1 (latest)

modern spearBOT
frosty slate
#

Hi we can only assist with the Stripe API in here. If this is directly related to the Stripe API part of your code we can help, but there's not much we can help with in respect to writing to your database

tacit fiber
#

Yes, i want to insert data from a checkout.completed event to my database. For this I use the stripe library for php. I crated and connected my webhook but when I do the insert and looking into my database, nothing happened. the response code 200

frosty slate
#

Can you share the code?

#

But that doesn't sound like a stripe issue

#

We have nothing to do with your database

modern spearBOT
tacit fiber
#

Yes maybe i didn't retrie the data properly

soft delta
#

Hi ๐Ÿ‘‹

#

What line in this code is throwing the error?

tacit fiber
#

The thing is that i doesn't throw any error

soft delta
#

Then my first recommendation would be to add some logging to ensure you are getting the results you expect. First verify that the Checkout Session is being successfully returned as well as the Customer. Then ensure the $values variable has the data you expect. If all that is working as expected then I think you'd need to examine what is going on when you attempt to write to the DB.

tacit fiber
#

Ok i'lltry this