bendrucker / angularjs-stripe

Angular Stripe.js service that returns promises for token calls
MIT License
333 stars 72 forks source link

Ionic integration #33

Closed vladi-dev closed 9 years ago

vladi-dev commented 9 years ago

Anyone tried using this library with ionic? I'm having problem including this module. Tried installing with npm, bower or putting src in root folder and including with <script> tag. No luck with any of this methods.

angular.module('myApp', [
  require('angular-stripe')
]);

gives me require is not defined error.

angular.module('myApp', [
  'angular-stripe'
]);

gives me Module 'angular-stripe' is not available! error.

bendrucker commented 9 years ago

Sorry, can't figure out installation stuff like this for you. If you post a reproduction that I can easily run I can try to take a look.

vladi-dev commented 9 years ago

Got it. Just had to include <script src="lib/angular-stripe/release/angular-stripe.js"></script> instead of <script src="lib/angular-stripe/src/index.js"></script>