#theglobe

1 messages · Page 1 of 1 (latest)

primal lotusBOT
gilded coyote
#

Are you passing the coupon in a checkout session? What kind of payments are these?

ripe ridge
#

there are times where I am passing the coupon prefilled (https://checkout...../F?prefilled_promo_code=promocode) and sometimes the user adds them manually

#

it's a pre made Stripe checkout page

#

the payment is for a product (not a subscription, but a one-time purchase product)

gilded coyote
ripe ridge
#

Yes, so I am using the checkout.session.completed as the event for my webhook, but it's not passing the coupon

gilded coyote
#

Can you send me a checkout session id then?

#

Where you passed a coupon

#

Or a checkout.session.completed event ID where you passed a coupon?

ripe ridge
#

cs_live_b1B9oSWE7bmXBjPH0IzW0g0yEM22rxRlBy20uOX5AN5yE5TDRVjHbcAngv

gilded coyote
#

Ah right

#

You so you'll need to retrieve the session object and expand it

ripe ridge
#

oh okay. I will try that then. thank you so much