#DanielIvy
1 messages · Page 1 of 1 (latest)
When you say "get a test session" what do you mean? What are you actually wanting to get specifically?
When a payment succeeds, I want to add the info to my database and send an email to the customer. So before I added all the code for this, I tried to create a Session to see if it would execute the session so I would be able to see the response on another page, but it did not work
This is in webhook
I am using php
I want to add the info to my database
Sure, but what info?
If you're talking about a Checkout Session, then you should set up your endpoint to listen for checkout.session.completed
What I want if payment succeeded I want to add the word succeed to my database.
checkout.session.completed will only fire if a payment succeeded (unless you're using a delayed payment type like ACH or SEPA)