bendrucker / angularjs-stripe

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

Facing an Issue in integrating angular-stripe #73

Closed meghaarora099 closed 6 years ago

meghaarora099 commented 6 years ago

Hi, I am trying to integrate this repository in to my angular project i followed the step that are mentioned in the read me document but i am facing an error require not defined in index.js .

I have included browserify in my index.html but all in vain please guide me. TIA untitled

bendrucker commented 6 years ago

Hi, browserify isn't something you include in your html doc as a script. It's a Node.js tool you run on your Javascript modules to transform them into a single JS bundle that will run in the browser. If you're looking to just add a script to your index file, you should try this one:

https://github.com/bendrucker/angular-stripe/blob/master/release/angular-stripe.js

That's pre-bundled via browserify and you can just drop it in as a <script> tag.