I wanted to share how to integrate the new Stripe v3 hosted forms UI into Angular 2+.
The hosted forms are quite clever, they overlay a styled div with an 'invisible' form within an iFrame. With the right styling it looks nearly seamless.
My simple angular component encapsulates this into a working angular component to capture the card token. It:
- Styles the form to match the bootstrap 4 alpha styling in a project I was working on. It should work for you if you use bootstrap 4, otherwise just modify the less file and style properties to match your project.