Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.82 KB

File metadata and controls

52 lines (30 loc) · 1.82 KB

Smart-Fields-examples

See them in action!

This repository contains examples of stylish forms that use SmartFields. These examples illustrate how to handle errors in real-time and style focus states, error states, and placeholders.

Common code for handling errors and form submission lives here.

Example 1

Example 1 is the simpliest example that shows a form that uses the card SmartField.

Example 2

Example 2 shows a form that collects more data and sends it when it creates the token.

Example 3

Example 3 shows a form that uses individual pan, expiration, and cvv SmartFields with a custom web font and custom placeholders.

The form also collects other data outside of the payment form.

Example 4

Example 4 shows a form that displays the available installments for the example amount and uses the card SmartField. This example does not show the brand icon flag.

Example 5

Example 5 shows a form that displays the available installments for the example amount and uses pan, expiration, and cvv SmartFields with floating labels and custom placeholders.

Example 6

Example 6 shows a form that uses individual number, expiration, and cvv fields, styled with floating labels, and many other features thar show the power of Smart-Fields to be styled as you need in your site. This example also uses floating-label.css and checkbox.css