Comments (2)
Ok, I fixed this by taking out the card setup code (this.stripeService.elements) from ngOnInit and putting it into ngAfterViewInit.
from ngx-stripe.
About the other concerns, you can remove the ElementRef and pass the selector id to the mount call:
this.card.mount('#card-element')
So no more cardRef, no ElementRef and no nativeElement
Thanks for the fix with ngAfterViewInit. I will update the readme tomorrow.
from ngx-stripe.
Related Issues (20)
- Request for Beta Feature to block certain card types HOT 3
- [BUG] Payment Request Button throws error in console HOT 5
- Angular 17 HOT 1
- Possibility to see CB images HOT 15
- Stripe not blocking the fradulent cards HOT 1
- [BUG] <ngx-stripe-card> layout broken after recent Link integration HOT 1
- [BUG] I get issue in console log: "Refused to execute inline script" when loading some ngx elemens HOT 1
- Payment Dialog Not Closing on Abort Method Call Before/After Payment Intent Creation
- [BUG]
- Make ngs-stripe compatible with stripe/stripe-js v3.0.0 HOT 2
- [BUG] Unable to display name, phone & email is payment form using the billingDetails in defaultValues HOT 1
- [BUG] Missing type ConfirmCashappSetupOptions in "@stripe/[email protected]" HOT 5
- [BUG] Card icon not visible HOT 1
- Change language dynamically HOT 2
- [QUESTION] Documentation link HOT 3
- Create Card token from StripeCardGroupDirective HOT 1
- [BUG] Remove Stripe Cart Element types HOT 2
- [BUG] Appearance not applied to <ngx-stripe-payment> HOT 1
- [BUG] Payment request button only fires token event
- Error on TrustedScriptURL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-stripe.