News for hackers. Stuff that matters.
Re:Stripe Elements: Pre-built UI components to help you crea... by kylehotchkiss on Tuesday October 03, 2017 @05:17PM (#15396291)
I miss the JS tokenizer on plain text fields. It's hard to match validation and font styles in iframe fields.

That said, their React stripe elements library helped me use these in a project recently.

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

[0]: https://stripe.com/docs/stripe.js#input-validation

[1]: https://stripe.com/docs/stripe.js#stripe-elements

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.
Re:Stripe Elements: Pre-built UI components to help you crea... by pbarnes_1 on Tuesday October 03, 2017 @07:16PM (#15397032)
FYI, v2 of the Stripe.js API isn't being deprecated last time I checked with them.