#liege - .net events
1 messages · Page 1 of 1 (latest)
Well, for each event, its properties are casted to a specific object type, in the case below, its PaymentMethod. cs else if (stripeEvent.Type == Events.PaymentMethodAttached) { var paymentMethod = stripeEvent.Data.Object as PaymentMethod; }I am wondering what it is for the checkout.session.completed event.
It's the one you have, as document here:
https://stripe.com/docs/payments/checkout/fulfill-orders#handle-the-event
Events.CheckoutSessionCompleted
This is why i was asking/confused, you appear to already have the correct event type applied 🙂
And I was curious if some part of this was not working for you
I was looking for the Checkout.Session object because I have to set the objects as that. The link you sent was helpful and solved my issue. Thank you!
I have another question though.
The CheckoutSessionCompleted will fire when someone has successfully paid during a checkout session, correct?