{"id":13701005,"url":"https://github.com/stripe/elements-examples","last_synced_at":"2025-10-31T01:52:46.368Z","repository":{"id":48166947,"uuid":"103167960","full_name":"stripe/elements-examples","owner":"stripe","description":"Stripe Elements examples.","archived":false,"fork":false,"pushed_at":"2024-08-20T06:06:00.000Z","size":154,"stargazers_count":1006,"open_issues_count":1,"forks_count":720,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-05-04T20:41:09.498Z","etag":null,"topics":["card","examples","form","payments","stripe"],"latest_commit_sha":null,"homepage":"https://stripe.github.io/elements-examples","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stripe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-11T17:41:06.000Z","updated_at":"2025-03-25T13:25:34.000Z","dependencies_parsed_at":"2024-08-21T20:17:08.495Z","dependency_job_id":null,"html_url":"https://github.com/stripe/elements-examples","commit_stats":{"total_commits":49,"total_committers":21,"mean_commits":"2.3333333333333335","dds":0.7959183673469388,"last_synced_commit":"7cb00ab571c98a68c72bb67243d35cff3e2b560e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stripe/elements-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Felements-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Felements-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Felements-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Felements-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stripe","download_url":"https://codeload.github.com/stripe/elements-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Felements-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261162073,"owners_count":23118221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["card","examples","form","payments","stripe"],"created_at":"2024-08-02T20:01:13.858Z","updated_at":"2025-10-31T01:52:46.297Z","avatar_url":"https://github.com/stripe.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# Stripe Elements examples\n\n[See them in action!](https://stripe.github.io/elements-examples)\n\nThis repository contains examples of stylish forms that use Stripe Elements. These examples illustrate how to handle errors in real-time and style focus states, error states, and placeholders.\n\n## Need help with Elements?\n\n- Get started with Stripe Elements by [reading our quickstart guide](https://stripe.com/docs/stripe-js).\n- For help with Elements and your Stripe integration in general, please [contact Stripe Support](https://support.stripe.com/).\n\n\n# In this repo\n\nCommon code for handling errors and form submission lives [here](js/index.js).\n\n## Example 1\n\n- [JavaScript](js/example1.js)\n- [CSS](css/example1.css)\n\nExample 1 shows a form that uses the `card` Element, a custom web font, and a solid icon with a custom color.\n\n## Example 2\n\n- [JavaScript](js/example2.js)\n- [CSS](css/example2.css)\n\nExample 2 shows a \"floaty-label\" form that uses individual `cardNumber`, `cardExpiry`, and `cardCvc` Elements with a custom web font.\n\nThe form also collects address (and thus postal code) outside of the payment form. It passes the postal code to Stripe on tokenization.\n\n## Example 3\n\n- [JavaScript](js/example3.js)\n- [CSS](css/example3.css)\n\nExample 3 shows a form that uses individual `cardNumber`, `cardExpiry`, and `cardCvc` Elements with a custom web font.\n\nThe form also collects postal code outside of the payment form.\n\n## Example 4\n\n- [JavaScript](js/example4.js)\n- [CSS](css/example4.css)\n\nExample 4 shows a form that uses the `paymentRequestButton` Element to provide\nApple Pay / Payment Request API support, as well as a `card` Element with a\ncustom web font.\n\n## Example 5\n\n- [JavaScript](js/example5.js)\n- [CSS](css/example5.css)\n\nExample 5 shows a form that uses the `paymentRequestButton` Element to provide\nApple Pay / Payment Request API support, as well as a `card` Element with a\ncustom icon color.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Felements-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstripe%2Felements-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Felements-examples/lists"}