ember-cli-patch-stripejs
Version:
A simple addon to patch the Stripe object for JS
25 lines (20 loc) • 606 B
Markdown
This addon will add Stripe or patch it depending on your enviornment
In development/test/server builds you will get the following
```javascript
<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
```javascript
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
```