Comments (4)
handle the error if it can't
How? Swallowing errors (or printing to the console or any other option) is even worse for a lot of people.
Since this package is basically just boilerplate and a call to stripe-as-promised
, I've generally said no to "advanced" features or anything else that serves a minority of users.
from angularjs-stripe.
By 'handle the error', I mean that it shouldn't kill the entire app, and could perhaps expose a 'errorLoadingStripe' variable similar.
To replicate what I'm talking about, take out the stripe.js <script>
tag in one of your pages and see what happens. The same would happen if the Stripe site goes down.
Not too worried if you fix it as I've now handcranked, but thought I should raise the issue :)
from angularjs-stripe.
Yup, I totally know what you mean, but would prefer to stick to more aggressive behavior for now to keep things simple.
Check out the code—you can get the promisification bits from stripe-as-promised with almost no effort. You can go as deep as you want (lazy loading, error handling, etc.) while still retaining the same interface.
from angularjs-stripe.
In that case, you should really add a warning to the front page:
Warning: This component is not production ready. If you use this component and the Stripe JS file fails to load for any reason at all, your app will no longer work.
(though honestly, I think it's a huge bug to simply close in the name of the keeping things simple!)
from angularjs-stripe.
Related Issues (20)
- npm install angular-stripe doesn't build angular-stripe.js HOT 1
- Card type when user finished to add the Card Number HOT 1
- Card formatting, unable to press the backspace/delete key to edit this field HOT 1
- how to use this library into webpack+angular2+typescript project HOT 2
- Stripe v3 HOT 4
- piiData undefined HOT 1
- Version 5.0.0 doesn't export main javascript file in .bower.json HOT 1
- 5.0 change log HOT 1
- stripe.card.validateCardNumber not working
- Support with Stripe v3 HOT 1
- v5 doesn't include bower.json export of release/angular-stripe.js HOT 1
- release folder and js not included in NPM HOT 1
- Support for stripe.js v3 paymentRequest method HOT 4
- [gdpr] [lazy-load] Conditionally include Stripe.js HOT 4
- Facing an Issue in integrating angular-stripe HOT 1
- Action required: Greenkeeper could not be activated 🚨
- promise not triggered back while created token anuglar-stripe.js
- This is AngularJs not Angular HOT 1
- [question] Seems there is no possibility to set apiVersion?
- The naming of the library is misleading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-stripe.