#0xwess

1 messages ยท Page 1 of 1 (latest)

twin charmBOT
rustic umbra
#

๐Ÿ‘‹ happy to help

thick trellis
rustic umbra
#

it depends on what mode of checkout sessions you're doing (payment, subscription, setup) and what type of payment methods (sync/async) the customer pays

thick trellis
#

payment + card only

rustic umbra
#

in that case checkout.session.completed is enough

thick trellis
#

what about apple pay or google pay? same?

rustic umbra
#

yes

thick trellis
#

gotcha, thanks @rustic umbra

#

when testing webhooks locally, is it possible to populate the customer, product data etc? to make sure the body is 100% identical to the real life scenario?

#

i need to fetch customer data, product data etc in the webhook handler

rustic umbra
#

how are you testing locally?

thick trellis
#

stripe cli

#

never mind, looks like it already populates it with fake data

#

at least the customer details

#

but not the product?

#

how to get which product was sold during that checkout?

rustic umbra
#

to customize the fixtures you're triggering

thick trellis
#

thanks, another question:

its not possible to test it with my app unless its deployed on some hosted server, right?

#

no way to test the real app on localhost?

rustic umbra
#

you mean test the webhook?

thick trellis
#

yep

#

the real one coming from my app i mean, no stripe cli

rustic umbra
#

actually even the events coming from your normal integration (not triggered by the Stripe CLI) will be forwarded to the Stripe CLI -> local webhook server