Closed matheo closed 5 months ago
Ok, I found this talking about this non-intuitive stuff: https://stackoverflow.com/questions/58783206/pass-cvc-to-stripe-createpaymentmethod-js
and I see that createPaymentMethod
works with the single CardNumber
element, so I think createToken
does the same. Nice magic, thanks for the great stuff!
Is your feature request related to a problem? Please describe. I'm capturing the data of the credit card with the
StripeCardGroupDirective
, and while trying tocreateToken
I see that the service only receivesStripeCardElement | StripeCardNumberElement
.Describe the solution you'd like I would like to know if it's possible to setup a
StripeCardElement
fromStripeCardGroupDirective
so we can create the token from separated components and not only from aStripeCardComponent
.Describe alternatives you've considered I might need to migrate to
StripeCardComponent
because I cannot replicate the security offered by the Stripe Elements.Also it's difficult to evaluate the status of the Stripe Elements inside my ReactiveForm and the only way possible seems to access the
nativeElement
CSS class, an Angula's API likevalid()
,touched()
, etc. would be good.Thanks in advance for the advise!