#daniell_74820
1 messages · Page 1 of 1 (latest)
There could be multiple customers with the same email 😅 so it might get tricky.
How exactly are you integrated? What APIs are you using?
Is this for a subscription payment?
i am currently planning to use for one time payment. I want to use stripe checkout (stripe hosted page) and also send the invoice to the customer. In this case want to sell an ebook.
Are you planning to send your own invoice?
Checkout does support sending post payment invoices by default
@stray jungle are you still here?
Did you check the docs I linked above? It shows how you can automatically send invoices once the payment succeeds
Yes, I see it. Thank you for that! I have a route on my backend where the ebook is generated with customers name, address and the date of purchase. how can i get from stripe api this?
Is there a specific event you're listening to? Ideally you should be listening to checkout.sessions.completed
You could use List all Checkout Sessions API and pass customer_details.email as parameter
https://stripe.com/docs/api/checkout/sessions/list
That should give you all the associated checkout sessions to that email
Okey, I am goin to listen to ´checkout.sessions.completed´. That`s it, thank you very much. 🙂
NP! 🙂 Happy to help