#imexoodeex

1 messages · Page 1 of 1 (latest)

rocky tigerBOT
slate hill
#

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.

wise spade
#

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?

slate hill
#

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.

wise spade
#

okey, I will ask in different way. What can I make with my webhook event if I get one from payment?

slate hill
#

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.

wise spade
slate hill
#

I am assuming this is an order in your DB already, correct?

wise spade
#

yes

slate hill
#

Okay so when you create the Payment Intent do you include the order ID ? Like in the metadata property?