#imin-new
1 messages · Page 1 of 1 (latest)
Hi there!
Looks like you originally asked a question over the weekend when we don't staff this channel.
Can you re-post your question here?
I would be happy to take a look
Hi bismarck, thanks for replying. Here's my question:
Hi, I'm just starting to use stripe. Just a quick question, upon successful payment from a payment sheet (in my case from my Android app), PaymentSheetResult.Completed will be called (ref https://stripe.com/docs/payments/accept-a-payment?platform=android&ui=payment-sheet#android-flowcontroller) and Stripe will send a payment_intent.succeeded to my webhook. So my question is, how do I identify for which payment the webhook is called in my webhook? Can I rely on the 'client_secret' value that was returned to me when I created the payment sheet? How about 'payment_intent' value? Because I see both of these values appear when I'm trying to create a payment sheet and on the request by Stripe that was sent to the webhook.
Good question. The most common solution here is to add metadata to your PaymentIntent
That metadata will then flow through to your webhook
And you can use it to perform reconciliation/fulfillment
So you would set metadata here: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-metadata
Oh, I see, thanks! But just curious then, can we still rely on 'client_secret' to check the completed payment? Is 'client_secret' unique for each and every transaction?
Yep