#cryptiano

1 messages · Page 1 of 1 (latest)

random mapleBOT
balmy pivot
#

in other words, do i fulfill the order on checkout.session.completed or charge.succeeded event?

cosmic viper
balmy pivot
#

I see

#

alright thanks

#

@cosmic viper but Charge object doesn't contain client_reference_id

#

only the Sesison object does.

cosmic viper
#

Let's back up, what are you trying to do here?

balmy pivot
#

I want to listen to an event from Stripe that tells me that payment is successful

i used Checkout Sessions and gave it my internal sale id as the reference.

rn im listening to checkout.session.completed event and using Session:client_reference_id to find my internal sale.

cosmic viper
balmy pivot
#

thx. can you give me a scenario where checkout.session.completed is fired, but payment is failed?

cosmic viper
balmy pivot
#

I see

cosmic viper
balmy pivot
#

alright great

#

understood.

#

thanks