3 ms·
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 he
by kylehotchkiss 9y ago
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.
- memco 9y agoI 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.
- pbarnes_1 9y agoFYI, v2 of the Stripe.js API isn't being deprecated last time I checked with them.
- mglukhovsky 9y agoElements 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 https://stripe.com/elements/examples [0]: https://stripe.com/docs/stripe.js#input-validation https://stripe.com/docs/stripe.js#input-validation [1]: https://stripe.com/docs/stripe.js#stripe-elements https://stripe.com/docs/stripe.js#stripe-elements