File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- (defproject racehub /stripe-clj " 0.3.1-SNAPSHOT "
1+ (defproject racehub /stripe-clj " 0.3.1"
22 :description " Schemafied Stripe bindings for Clojure."
33 :url " https://github.com/racehub/stripe-clj"
44 :license {:name " Eclipse Public License"
Original file line number Diff line number Diff line change 2222 site (in test mode). When the order's submitted, Stripe will pass a
2323 map of :token -> stripe token and :args -> additional args into the
2424 supplied channel."
25- [{:keys [out image key bitcoin?]} :- StripeOptions]
25+ [{:keys [out image key currency bitcoin?]} :- StripeOptions]
2626 (-> js/StripeCheckout
2727 (.configure #js {:key key
2828 :image image
2929 :bitcoin (boolean bitcoin?)
30+ :currency (or currency " USD" )
3031 :opened #(put! out [:opened ])
3132 :closed #(put! out [:closed ])
3233 :token (fn [t args] (put! out [:token (js->clj t :keywordize-keys true )]))})))
3334
3435(s/defn present-stripe
35- [{:keys [amt email name description currency ] :as opts} :- StripeOptions]
36+ [{:keys [amt email name description] :as opts} :- StripeOptions]
3637 (.open (stripe-handler opts)
3738 #js {:name name
3839 :email email
3940 :description description
40- :currency (or currency " USD" )
4141 :amount amt}))
You can’t perform that action at this time.
0 commit comments