#szef0
1 messages · Page 1 of 1 (latest)
payment_intent.succeeded
are you sure its triggered when subscription.creation event happens? It happens and we get new money - we use subscription schedule when someone pays with card and next month subscription.creation happens, but I remember that payment_intent didnt trigger
If there's an payment associated to the Subscription then there'll be a Payment Intent
ok, will monitor this. Thank you!
ok I have one last question
In payment_intent.succeded I dont see my metadata, but in Checkout Session completed there is metadata - how can we fix this?
checkout.session.completed -> cs_live_b1KXVmZxg2KnNoNqm9lyKUCWMlYE8XirQI8kRkCUvtOC4FPlvccmbu9qUN
payment_intent.succeeded ->
pi_3NI84FF7zH4zp4Qw1vnGWm7e
You need to use: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The root metadata parameter only persits to the Checkout Session object/events