Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swlkr/tiger
The fastest way to get going with stripe and clojure
https://github.com/swlkr/tiger
clojure leiningen stripe
Last synced: 3 months ago
JSON representation
The fastest way to get going with stripe and clojure
- Host: GitHub
- URL: https://github.com/swlkr/tiger
- Owner: swlkr
- License: epl-1.0
- Created: 2017-03-02T06:09:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T01:53:47.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T17:14:51.040Z (3 months ago)
- Topics: clojure, leiningen, stripe
- Language: Clojure
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiger
Yet another clojure stripe library
## Usage
```bash
lein plz tiger
```or
```clojure
; add the following to :dependencies in your project.clj
[tiger "1.0.1"]
``````clojure
(ns your-project.core
(:require [tiger.core :as stripe]
[tiger.events :as events]
[tiger.plans :as plans]
[tiger.customers :as customers]
[tiger.subscriptions :as subscriptions]))
(stripe/set-api-key! "your api key"); events
(events/get! "evt_id"); plans
(plans/get! "plan_id")
(plans/create! {:id "plan-id" :amount 4999 :interval "month" :name "plan-name" :currency "usd"})
(plans/update! "plan_id" {:name "hello world"})
(plans/delete! "plan_id")
(plans/list!); customers
(customers/get! "cus_id")
(customers/create! {:email "[email protected]"})
(customers/update! "cus_id" {:email "[email protected]"})
(customers/delete! "cus_id")
(customers/list!); subscriptions
(subscriptions/get! "sub_id")
(subscriptions/create! {:customer "cus_id" :plan "plan-id"})
(subscriptions/update! "sub_id" {:quantity 10})
(subscriptions/delete! "sub_id")
(subscriptions/list!)```