#stibbs-webhook
1 messages · Page 1 of 1 (latest)
You can convert your Unit8Array to buffer and pass it to the function.
I think Buffer.from(Unit8Array) should do.
Thanks! That works when testing with the stripe CLI 🙂
I have a general question now: does event type checkout.session.completed only ever occur in the success flow? I see there's an checkout.session.expired as well, but there's no cancel?
I'm trying to understand what I need to be watching for in my endpoint for both successes and cancellations/failures
Cool.
Looking at https://stripe.com/docs/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you are only accepting credit card, the payment failure will be immediate/synchronous and there is no need to watch failed unless you are using async payment method like bank transfers in which case you can watch checkout.session.async_payment_failed
there is no cancel API unfortunately thus we don't really have the cancel event; you can just listen to the expired event instead