Skip to content

Commit f10ddda

Browse files
committed
Merge branch 'hotfix/move-currency'
2 parents 5ebb380 + 2788371 commit f10ddda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)