File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 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