How to work with stripe.js in an Ionic/Angular application

Marcelo Andrade Amadeu

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)?

one more time

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.

edited at
0

Comments

0 comments
Login to comment

Related

How to work with application modes in JSF

How can I test Stripe.js using poltergeist and Capybara?

how to use Stripe (stripe.js) and react-native

Stripe with React JS

How to add Stripe.js script in React component

How to get application header to work

How to use stripe connect payment gateway with node.js?

How to deduct an application fee from a charge object in Stripe API?

Using Stripe.js for kickstarter-style application. How can I test cards before iterating over and charging them all?

Stripe / node.js : how retrieve stripe subscription safely + increment 1

How do I add an amount field to stripe.js?

How to intergrate with Stripe Checkout JS/HTML

How, and if, to use server side in stripe new library @stripe/react-stripe-js

Stripe with Vue.js

How does concurrency work in Node.js + Express application?

How do I fire a function with Stripe JS in React?

How to work with wilcard subdomains on localhost in a node js application

how to import stripe.js in sapper app into my preload() or onMount()

How to update a subscription (adding a pricing plan) by Stripe in Node.js?

Trying to use a webhook with stripe to send data into a Node.JS application

How do I disable advanced fraud detection of stripe in react-stripe-js?

How to update Stripe subscription quantity? (Node.js)

How do I get my Stripe payments to work on Angular and Node.js?

How to add bank details of a customer in stripe using node js

nextjs SSR how to cache stripe js V3

How do i get Typed.js to work in a python Dash application?

How to add google and apple pay to stripe sesion node.js

How to apply "STRIPE_SECRET_KEY" to Spring Boot application?

How to implement payment to multiple stripe accounts in node.js