#mram31.204
1 messages · Page 1 of 1 (latest)
hello! try triggering that event with this command
stripe trigger checkout.session.completed --override price:currency=inr --override price:unit_amount=100000
@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
I'd recommend going through https://stripe.com/docs/webhooks, we have a quickstart demo here for how to quickly set up and how to test : https://stripe.com/docs/webhooks/quickstart
@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:-
-
user login and I capture their email (lets say
x@gmail.com) -
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
-
web app listens only to webhook events
checkout.session.async.payment.suceededandcheckout.session.completedand maybepayment_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!
the payment_link will generate the checkout.session.completed event too. You'll essentially follow the same steps for fulfilling orders for Checkout Sessions and Payment Links (Payment Links are actually Checkout Sessions) : https://stripe.com/docs/payments/checkout/fulfill-orders
one last question
I am using https://streamlit.io/ to build the app. Is it possible to use it instead of flask?
That's entirely up to you. I'm not familiar with streamlit, but it should be possible