#Reid-payment-descriptions

1 messages ยท Page 1 of 1 (latest)

halcyon scarab
#

Hi there ๐Ÿ‘‹ are you referring to the description parameter on the Payment Intent objects?

rapid bluff
#

Are the Payment Intent object the same as the 'payments' that you see in the dashboard?

#

If so, then yes.

halcyon scarab
#

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.

rapid bluff
#

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.

halcyon scarab
#

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.

rapid bluff
#

Great! Thank you for your assistance. ๐Ÿง™