How to do it...

  1. If you don't have a Stripe account, you need to register on
  2. Log in and go to
  1. Copy your Publishable Key, shown as follows, somewhere because you need to use it for your JavaScript code later:
  1. Now, go back to the Terminal and create a new StripePayment app using the blank template, as follows, and go into the StripePayment folder:
$ ionic start StripePayment blank
$ cd StripePayment
  1. Open the ./src/index.html file and insert the line shown somewhere in the <body> tab as follows:
<script type="text/javascript" src=""></script>
This ...

Get Ionic Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.