nomadreservations / ngx-stripe

Angular 8.x wrapper for StripeJS
41 stars 32 forks source link

Fetching card details from StripeElement #13

Closed palexcast closed 5 years ago

palexcast commented 5 years ago

Hi @paullryan, I can't seem to find an easy way to fetch card details from the generated stripe element without traversing the DOM.

Is there any easy way to retrieve the:

from @ViewChild(StripeCardComponent) card: StripeCardComponent;?

paullryan commented 5 years ago

No and you shouldn't as this breaks PCI and similar compliance laws. The point of using stripe elements is to keep this hidden from our software so that we don't have to go through heavy compliance audits.