#krutarth-terminal-cancelation
1 messages ยท Page 1 of 1 (latest)
Hello ๐
The PaymentIntents API doesn't have a concept of Line Items unfortunately.
You'd likely want to use metadata to store this information instead
Can you describe what do you mean? how can i exactly use metadata? which api?
The PaymentIntent has a parameter called metadata (an object/hash) which can store key-value pairs
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-metadata
You can store line item information in the metadata for your reconciliation
So in the case of metdata this type of summary will not be available right, Actually the case is that im going to integrate stockify, and I require to decrease the stock of the purchased item when the payemnt is dont through terminal...
Yeah you won't be able to see a summary of that type unfortunately.
You can listen to webhook events and update your inventory. But yeah the dashboard won't have a rich summary as it does with Checkout
can you provide the link of the relevant documentation for webhook for my case and also, if there is any video from stripe developers on youtube that link will be of lot of help,
One point, after listening to webhook, user need to manually update the inventory right?
I don't think we have specific docs around your usecase but have general guidance here
https://stripe.com/docs/webhooks
One point, after listening to webhook, user need to manually update the inventory right?
Yes, you'd need to update your Database/inventory
ok thanks...
๐