#Dheeraj - Retry Charge
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I think you could try using the Update Invoice API and perhaps include the new note in the Invoice metadata.
https://stripe.com/docs/api/invoices/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I was wondering if I can possibly get a small example of how I would approach that?
In terms or parameters
Okay well this is a form you are maintaining, correct?
In that case I would trigger 2 api calls. The first to the Update Invoice API and set the metadata = {invoice_note_04133033: "This is my note"}
Then you use the payment method you have captured to pay the invoice.
Does that make sense?
Yep, that makes sense! Last question the number on that note, is it random or to keep track of how many notes?
I added it myself as a way to keep track of the date when the note was created. That way if you have multiple notes you don't run into key errors using the same note key.
I see that makes a lot of sense thank you for all your help!
Always happy to help ๐
I hope it works out for you