FAQS
How ngx-stripe and Stripe.js fit together
Happy to help with either — this note just points you to the fastest answer. ngx-stripe wraps Stripe.js for Angular (DI, Observables, CDN loading, Element hosts). Stripe.js owns Element appearance, payment methods, validation copy, and PCI. For styling, placeholders, installments, and Element options, Stripe’s docs are usually the best first stop; for Angular setup and our components, you’re in the right place. See also FAQs, CSP, and Stripe.js.
The aim of this section is to provide some answers to usual questions. Based on issues, problems or suggestions, extra questions will be added. Please, feel free to contact me directly if you have any extra questions. We will try to help you and if we think it could help more people, we will add it here.
Which ngx-stripe version should I install?
Match Angular major and Stripe.js train:
Where did Payment Request Button go?
Stripe removed the Payment Request Button Element in Stripe.js v10. ngx-stripe
Do I need to connect to a back-end server such as AWS lambda for the component to work or does the component work directly with Stripe?
Ngx Stripe is just a wrapper around the StripeJS functionality. The scope of the library is to ease collecting payment information within an Angular Application, but in order to perform most of the operations you will need back-end code. Please check this example to collect a payment with Payment Intents.
How do I perform validation?
The whole purpose of StripeJS is to be able to collect Payment information keeping your site compliant with industry regulation without too much burden. In order to do that, information is collected inside an iFrame. We need a way to perform validation without accessing plain values. Please check the examples page to see how it can be done.
