#Swarnali

1 messages · Page 1 of 1 (latest)

proven gladeBOT
golden quest
#

hello! do you have a PaymentIntent id for me to look at?

indigo river
#

i have a webhook with paymentintent.succeeded event

#

it is working

#

need to also note these 2 data

golden quest
#

can you share the PaymentIntent or event id for me to take a look?

indigo river
#

i have not made any payments with coupon code yet

golden quest
#

i understand that, can you share the object id so that i can take a look at how you're currently integrating?

indigo river
#

stripe webhook id we_1NcQddSHjRN6CC0iDt1xwPGg

golden quest
#

that's the webhook endpoint id, can i get the event id? or PaymentIntent id? the event id starts with evt_ and PaymentIntent id starts with pi_

indigo river
#

evt_3Nck1WSHjRN6CC0i1buhpKWi

golden quest
#

you should be able to get the coupon id by retrieving the checkout session object with total_details.breakdown expanded. so that they can get the coupon ID from total_details.breakdown.discounts[0].discount.coupon.id

indigo river
#

how to do that from payment intent succeeded event object

golden quest
#

you can't, the payment_intent.succeeded event object doesn't contain any data about the coupon