#kemal-charge-description
1 messages ยท Page 1 of 1 (latest)
Hi ๐ apologies for the delay. Sorry, but I don't think I understand the question, our charge objects don't have a description field. Could you try clarifying?
@twilit moth just checking to see if you're still here?
hi yes i am still here
on dashboard i can see '"Invoice 708D2635-0024"'
for charge object this is what i see on dashboard
I want to set something more relevant what customer subscribed for
Thank you for the clarification. Do you have the ID of the charge you are looking at? And are you looking to customize the Invoice ID or just what shows up on this dashboard page?
Thank you, looking in to it
So you can customize the Invoice numbering https://stripe.com/docs/invoicing/customize#invoice-numbering-schemes
The Invoice also has a description you can specifically override https://stripe.com/docs/api/invoices/update#update_invoice-description
And it looks like the value that you are seeing on that page may actually be the description for the Invoice's PaymentIntent
https://dashboard.stripe.com/test/payments/pi_3KPu7TBXEXgJIGE11vEWt9JW
So as those docs lay out, you can configure the ID a bit. I am trying to figure out what of this can be set automatically. Otherwise you may have to set these fields manually based on webhook events
i tried this https://stripe.com/docs/api/invoices/update#update_invoice-description set field through dashboard
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but did do
We are creating these charges through subscription
Setting it on the Invoice would likely not copy over automatically to the payment intent
Typically in Stripe, data on one object is not copied over to another when it is updated
i see, what do you suggest ?
It looks like there is not a way to set this automatically, so I would probably say it would be easiest to wait for the invoice.created webhook event and set the PaymentIntent's description there
PaymentIntent is being created during payment
These PaymentIntents are created when the invoice is created.
The Charge objects are created when payments are attempted but those are slightly different and don't have a description field
You linked to a charge ID, but if you try to go to that charge in the dashboard, you will see the payment intent: https://dashboard.stripe.com/test/payments/ch_3KPu7TBXEXgJIGE11vwzImd0
Of course, good luck