#mram31.204

1 messages · Page 1 of 1 (latest)

zenith roverBOT
slim owl
#

hello! try triggering that event with this command
stripe trigger checkout.session.completed --override price:currency=inr --override price:unit_amount=100000

simple sonnet
#

@slim owl thank you
after the payment link is successful , how can I listen to the endpoint checkout.session.completed in code
Do I need to register it in webhook?
I am confused as it is already an event

slim owl
simple sonnet
#

@slim owl
cool, I can go through it.
would you be able to comment on the following steps and flag anything if way off.

My payment integration requirement is very simple w/ respect to what it needs to do.
I am building an AI chatbot:-

  1. user login and I capture their email (lets say x@gmail.com)

  2. append email to product link to later use as unique identifier to query if payment succeeded for them, https://buy.stripe.com/test_bIYXeBKggweUU?client_reference_id=x@gmail.com

  3. web app listens only to webhook events checkout.session.async.payment.suceeded and checkout.session.completed and maybe payment_intent.succeeded?

Follow up question:
Does payment_link provide any success of payment via a webhook event? I only see payment_link.created and payment_link.updated

#

@slim owl : thanks a lot for helping on this!

slim owl
simple sonnet
slim owl
#

That's entirely up to you. I'm not familiar with streamlit, but it should be possible