ember-cli-patch-stripejs

0.2.0 • Public • Published

This addon will add Stripe or patch it depending on your enviornment

In development/test/server builds you will get the following

<script type="text/javascript">
    var Stripe = {
        setPublishableKey: function(){
            console.log("Setting publishable key.");
        },
        card: {
            createToken: function() {
                console.log("createToken was called.");
            }
        }
    };
</script>

In production you will get the real stripe client library

<script type="text/javascript" src="https://js.stripe.com/v2/"></script>

Package Sidebar

Install

npm i ember-cli-patch-stripejs

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • williamsbdev
  • toranb