This can ONLY be run on device and requires the following plugin and library
- Telerik-Verified-Plugins/Stripe: Stripe is a payment infrastructure for the internet. Stripe Cordova SDK is built around the well organized REST API. it exposes a global window.stripe object that defines various operation to initialze and transfer payments
- angular-credit-cards: A set of Angular directives for constructing credit card payment forms
# using ionic, use your own api key from stripe console
$ ionic plugin add https://github.com/Telerik-Verified-Plugins/Stripe --variable API_KEY=sk_test_xxxxxxxxxxxxxxx
# using bower
$ bower install angular-credit-cards
When completed, be sure to save the state
$ ionic save state
If using your own project, be sure to make the following modifications to the appropriate files
Update the index.html
file
<!-- your app's js -->
<script src="lib/angular-credit-cards/release/angular-credit-cards.js"></script>
<script src="js/app.js"></script>
Update the app.js
file
angular.module('starter', ['ionic', 'credit-cards'])