- If you don't have a Stripe account, you need to register on https://stripe.com.
- Log in and go to https://dashboard.stripe.com/account/apikeys.
- Copy your Publishable Key, shown as follows, somewhere because you need to use it for your JavaScript code later:
- 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
- Open the ./src/index.html file and insert the line shown somewhere in the <body> tab as follows:
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
This ...