Re:Stripe Elements: Pre-built UI components to help you crea...
by mglukhovsky on Tuesday October 03, 2017 @08:06PM
(#15397309)
Elements lets you define validation behavior and styles by listening to event handlers that emit errors[0], and you can specify custom web fonts with the `fonts` option[1].
You can see a few examples of Elements using custom validation and fonts here: https://stripe.com/elements/examples
Re:Stripe Elements: Pre-built UI components to help you crea...
by memco on Tuesday October 03, 2017 @06:52PM
(#15396890)
I am sad that this has been phased out. I have recently been working on a Square backed project, which uses this same iframe approach, but you cannot customize the fields or do any kind of validation: you just get the textboxes they give you with no way to add in things like specialized input types for numbers to help on mobile. To Stripe's credit, they at least go through the trouble of adding more intelligent validation & input handling. Will give this a closer look and may replace the Square version.
That said, their React stripe elements library helped me use these in a project recently.