#tbthiago

1 messages · Page 1 of 1 (latest)

inner anvilBOT
lapis nacelle
#

Unless you pass product/price related information in metadata, that is not propagated to charges. Can you share an example and explain what you're trying to achieve?

desert oriole
#

I am trying to create user on my database only if the payment is confirmed.. the event best give me that is event.succeeded.. it works perfectly if it's a subscription, but if it's a one-time product I can't access the product's metadata

lapis nacelle
#

Are you using Checkout?

#

event.succeeded
This is not an event type

desert oriole
#

sorry charge.suceeded

lapis nacelle
#

Are you using Checkout? Most likely you're want to look at the checkout.session.completed events for these flows and retrieve the line_items if you need to inspect those

desert oriole
#

I will look at this. thank you very much