#zachery - webhooks

1 messages · Page 1 of 1 (latest)

gentle cape
#

Hi there. What have you tried?

#

What language/frameworks are you using?

left rapids
#

I haven't tried anything yet just wondering how it should be done

#

im using php

gentle cape
#

What database?

left rapids
#

mysql

gentle cape
#

That's not a stripe question though, so we can't help too much

#

You'd need to use a mysql library for php

left rapids
#

Let me try a few things first, Ill come back if I need help. Thanks for responding!

gentle cape
#

No problem!

left rapids
#

Ok so I got updating my database to work on a webhook event

#

I have no idea if this is the right way to do it though. I stored the checkout session id in my database. After checkout completed, look in my database for session id and update details.

#

Is this the correct way to do it?

gentle cape
#

Hm so the recommended flow is to listen for events on your webhook endpoint and then use those events to process orders/provision access as needed for the customer

#

A little confused by what you're saying

#

What are you building and what specifically are you doing at the moment?

left rapids
#

So basically I'm building a service where you must purchase the service in order to use it

foggy blade
#

You can wait for the event and you can also do this during the redirect

left rapids
#

Wow that is really helpful! Sorry I didn't see that before