#daniell_74820

1 messages · Page 1 of 1 (latest)

quaint trellisBOT
teal prawn
#

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?

stray jungle
#

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.

teal prawn
#

Are you planning to send your own invoice?
Checkout does support sending post payment invoices by default

#

@stray jungle are you still here?

stray jungle
#

yes

#

i want to use stripe to send invoices, too.

quaint trellisBOT
teal prawn
#

Did you check the docs I linked above? It shows how you can automatically send invoices once the payment succeeds

stray jungle
#

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?

teal prawn
#

Is there a specific event you're listening to? Ideally you should be listening to checkout.sessions.completed

#

That should give you all the associated checkout sessions to that email

stray jungle
#

Okey, I am goin to listen to ´checkout.sessions.completed´. That`s it, thank you very much. 🙂

teal prawn
#

NP! 🙂 Happy to help