{"id":21089793,"url":"https://github.com/freshbitsweb/stripe-example","last_synced_at":"2025-12-27T23:31:18.486Z","repository":{"id":90033175,"uuid":"296357768","full_name":"freshbitsweb/stripe-example","owner":"freshbitsweb","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-17T14:55:11.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T00:51:22.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"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/freshbitsweb.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":"2020-09-17T14:52:59.000Z","updated_at":"2020-10-11T23:47:01.000Z","dependencies_parsed_at":"2023-07-03T00:06:11.446Z","dependency_job_id":null,"html_url":"https://github.com/freshbitsweb/stripe-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fstripe-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fstripe-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fstripe-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fstripe-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freshbitsweb","download_url":"https://codeload.github.com/freshbitsweb/stripe-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532562,"owners_count":20306157,"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":[],"created_at":"2024-11-19T21:31:33.766Z","updated_at":"2025-12-27T23:31:18.420Z","avatar_url":"https://github.com/freshbitsweb.png","language":"CSS","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/elements/quickstart).\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Fstripe-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreshbitsweb%2Fstripe-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Fstripe-example/lists"}