Created
March 11, 2015 20:41
-
-
Save rwillig/20b411f15c6deb3c69ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn stripe-init! [] | |
(do | |
(.setPublishableKey js/Stripe @stripe-pub-key) | |
(reset! stripe-ready? true))) | |
(defn ensure-stripe [] | |
(.getScript js/jQuery stripe-url #(stripe-init!))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment