#Jesus Salcido
1 messages · Page 1 of 1 (latest)
Hello! You can update the Payment Intent's metadata after it's created by the Subscription Invoice: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-metadata
Great, so there isnt a way to pass this metadata on creation, for example with the checkout session you can pass some metadata on the session object to the paymentIntent
Correct, you need to update it yourself with a separate API call after the Payment Intent exists.
Thanks, that helps a lot, I was going crazy looking for the way to pass it on creation
Yeah. We mostly don't ever touch metadata on separate objects, or have it inherit from something else. There are a couple of exceptions (e.g., Charges created by a Payment Intent inherit the Payment Intent's metadata) but this isn't one of them. 🙂
Thanks, it was a huge help
Happy to be of service!