Skip to content

Commit e9380fc

Browse files
committed
Merge branch 'hotfix/move-currency' into develop
2 parents af38e21 + 2788371 commit e9380fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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"

src/cljs/stripe/client.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
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}))

0 commit comments

Comments
 (0)