#stibbs-webhook

1 messages · Page 1 of 1 (latest)

lone bough
#

You can convert your Unit8Array to buffer and pass it to the function.
I think Buffer.from(Unit8Array) should do.

royal drift
#

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

lone bough
#

Cool.

royal drift
lone bough
#

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

royal drift
#

Perfect

#

I am indeed just doing card

lone bough
#

there is no cancel API unfortunately thus we don't really have the cancel event; you can just listen to the expired event instead

royal drift
#

If they pay by card is there a way to trigger stripe to send a "tax invoice" to be emailed to the customer?

I'd need to enable address inputs so the customer can enter their head office address, an ABN etc

#

Or should I do this on my end