This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-26
Channels
- # aleph (3)
- # announcements (6)
- # babashka (14)
- # beginners (8)
- # biff (16)
- # calva (4)
- # cider (7)
- # clj-kondo (8)
- # cljs-dev (26)
- # clojure (65)
- # clojure-austin (2)
- # clojure-brasil (1)
- # clojure-europe (35)
- # clojure-nl (4)
- # clojure-norway (45)
- # clojure-portugal (1)
- # clojure-uk (9)
- # clr (5)
- # community-development (6)
- # conjure (1)
- # cursive (3)
- # events (8)
- # fulcro (1)
- # honeysql (19)
- # hyperfiddle (31)
- # introduce-yourself (1)
- # lsp (7)
- # matcher-combinators (10)
- # off-topic (17)
- # practicalli (1)
- # ring (30)
- # shadow-cljs (6)
- # testing (2)
Is there a recommended and easy way to accept payments in a biff application? I imagine redirecting to an external site using oauth, or perhaps holding and using an API key.
I've used stripe in several apps and can recommend that. they have good docs too. I would use the http api directly; no need to use the Java sdk. I'm planning to put together a biff-stripe example at some point, but might not happen for a while.
Biff doesnt seem to have any built in ways to do this… if you went with something like stripe, you send the user off to the payment page on stripe, then receive webhooks for when events happen. Biff has built in jobs that would work for this pretty well I think
no need for jobs, but there is a bit of complexity around setting up the web hook; I should at least publish a gist going over that
I guess you can use their api directly, its been a while since i interacted with stripe
also if you want to have the payment form embedded on your own site you can be that as well, though redirecting to stripe's hosted UI is what I always do
I know they have a whole dev cli where you can funnel webhook events to your local end point
yep! it's handy
> I've used stripe in several apps and can recommend that. Make sure your app doesn't land under "restricted apps" or "restricted businesses" section before writing any code. In their Terms of Service or something similar. I made this mistake in the past and wasted a lot of effort multiple times. It's very rough.
They have an openapi spec. Considering using martian. https://github.com/oliyh/martian
wrong thread, I think
So glad to see this Been following HTMX for a bit and it brought me to Biff via my friend @U05V17GUX70
nice, hope the article was helpful!