#krutarth-terminal-cancelation

1 messages ยท Page 1 of 1 (latest)

fathom vineBOT
frigid ridge
#

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

dusk vapor
#

Can you describe what do you mean? how can i exactly use metadata? which api?

frigid ridge
#

You can store line item information in the metadata for your reconciliation

dusk vapor
#

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...

frigid ridge
#

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

dusk vapor
#

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?

frigid ridge
#

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

fathom vineBOT
dusk vapor
#

ok thanks...

frigid ridge
#

๐Ÿ‘