I am working on an app (ionic/angular
) and now need to include payment via credit card using Stripe
.
After much research on the internet I decided to use Stripe.js
(https://stripe.com/docs/stripe-js).
In the index.html
of the project, I made the inclusion of Stripe.js
and it looks like this:
<body>
<app-root></app-root>
<script src="https://js.stripe.com/v3/"></script>
</body>
</html>
How do I now import Stripe into app/app.module.ts
to use Stripe
on another page (Example: in pages/payment/payment.page.ts
)?
no need to import in app/app.module.ts
,
in pages/payment/payment.page.ts
;u need declare let Stripe
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments