#Reid-payment-descriptions
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ are you referring to the description parameter on the Payment Intent objects?
Are the Payment Intent object the same as the 'payments' that you see in the dashboard?
If so, then yes.
Bear with me, we don't focus on the dashboard much here so it'll take me a moment to find the field you're referring to and figure out what it maps to.
I believe this is the field you're looking to update:
https://stripe.com/docs/api/payment_intents/update?lang=python#update_payment_intent-description
Thats fine. I don't deal with it much myself which is probably where some of the confusion is coming from. We have added our own descriptions to them when the charge was originated from us by setting the description as part of a call to charges.create, but since these are automatic payments we are not able to set the description and need to update it after the fact. Do I have access to a payment intent ID from an invoice.payment_succeeded event?
Looking at the response from sending a test event i see that payment_intent is one of the fields, but in the example it is null, so i'm not really sure what shape that data will come in.
Yup, invoice.payment_succeeded events will contain an invoice object, and the payment_intent field on that will contain the ID of the associated payment intent.
The invoice shown in the example is in a draft state, and a payment intent isn't attached to an invoice until it's finalized which is why that parameter is null there.
Great! Thank you for your assistance. ๐ง