#imexoodeex
1 messages · Page 1 of 1 (latest)
I'm sorry but that is not clear to me.
What purpose does the Payment Intent ID serve in your DB?
Ultimately it's up to you to decide when you should update your local DB records.
I need to update my data in webhook about payment status in given order. The way I can do it, is to store payment_id in db and then in webhook find this order with that payment_id and update payment status etc.
or there's some other way I can do it?
I'm sorry that sentence does not make sense to me. We provide you the Payment Intent object as part of the event notifying you that the Payment Intent succeeded. How this relates back to orders in your integration would be up to you.
okey, I will ask in different way. What can I make with my webhook event if I get one from payment?
The purpose of the webhook event is to notify you of changes that have occurred (or will occur) on your Stripe account. What you do with that information is up to you. In this case, if you know a specific Payment Intent is related to an order in your DB, and you received the payment_intent.succeeded event for that Payment Intent, you could update your DB to show that order was paid.
okey, so as you said on the end I can update my DB that order was paid. How can I get the id of the order to know what order was paid? Sorry for being annoying but I dont understand this 😫
I am assuming this is an order in your DB already, correct?
yes
Okay so when you create the Payment Intent do you include the order ID ? Like in the metadata property?