#magoware_16537

1 messages · Page 1 of 1 (latest)

flint sedgeBOT
abstract breach
#

hi there!

lone acorn
#

Hi

abstract breach
#

all events of the same type will go to the same webhook endpoint

#

the product itself will have to impact on this.

lone acorn
#

how?

#

i dont want to send the call at all to the webhook 2 if the client pays product 1

abstract breach
#

which event are you listening to exactly?

lone acorn
#

is there anyways of going to webhook from settings?

#

i never find it from here

abstract breach
lone acorn
#

event: checkout.session.completed

abstract breach
#

and you have multiple webhook endpoint listening to that event?

lone acorn
#

yes

abstract breach
#

then each endpoint will receive all checkout.session.completed event. that's how Stripe works

#

so you'll have to write custom code to process the events differently based on the product

lone acorn
#

ok one more question please

#

which event sends the customer_reference_id

#

and which event indicates that tha payment is succesfull

abstract breach
#

if you set a customer_reference_id, then the checkout.session.completed should contain this info.

#

and which event indicates that tha payment is succesfull
if you are using Checkout Session, then it's checkout.session.completed

lone acorn
#

Iam using this

#

is that the only event that indicates successful payment?

abstract breach
#

that's the event we recommend listening to yes.

lone acorn
#

what do you recommend me do?

#

if i cant have different events

#

thn what can i do?

abstract breach
#

listen to checkout.session.completed, and write some code to check the product being bought. if it's product A, do something. if it's product B, do something else.