{"id":27169121,"url":"https://github.com/basis-theory-labs/pci-blueprint-example","last_synced_at":"2026-04-11T20:37:51.404Z","repository":{"id":113966800,"uuid":"556080909","full_name":"Basis-Theory-Labs/pci-blueprint-example","owner":"Basis-Theory-Labs","description":"PCI Blueprint Example Application","archived":false,"fork":false,"pushed_at":"2023-01-09T19:35:04.000Z","size":118,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T06:34:44.316Z","etag":null,"topics":["compliance","javascript","nodejs","pci","pci-dss","proxy","security"],"latest_commit_sha":null,"homepage":"https://developers.basistheory.com/blueprints/pci/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Basis-Theory-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-23T02:27:10.000Z","updated_at":"2024-07-21T00:47:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3aed4441-d446-4970-84ab-82232cb707a1","html_url":"https://github.com/Basis-Theory-Labs/pci-blueprint-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Basis-Theory-Labs/pci-blueprint-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basis-Theory-Labs%2Fpci-blueprint-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basis-Theory-Labs%2Fpci-blueprint-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basis-Theory-Labs%2Fpci-blueprint-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basis-Theory-Labs%2Fpci-blueprint-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Basis-Theory-Labs","download_url":"https://codeload.github.com/Basis-Theory-Labs/pci-blueprint-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basis-Theory-Labs%2Fpci-blueprint-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compliance","javascript","nodejs","pci","pci-dss","proxy","security"],"created_at":"2025-04-09T06:30:48.697Z","updated_at":"2025-10-18T12:19:45.329Z","avatar_url":"https://github.com/Basis-Theory-Labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PCI Blueprint Example\n\nPayment Card Industry Data Security Standard (PCI DSS) are a set of compliance requirements that must be met in order to collect, store, and process cardholder data. To fully implement these requirements is both costly and time intensive.\n\nThe Basis Theory PCI Blueprint will provide you with a guide to meet 95% of the compliance requirements of PCI in as little as ***5 minutes***.\n\nThis example application has implemented Basis Theory Elements and Proxy \n\n## Create Environment variables\n\nCreate a `.env.local` file with your secrets\n\n```\nNEXT_PUBLIC_BASIS_THEORY_PUBLIC_KEY=\nBASIS_THEORY_PRIVATE_KEY=\n```\n\nCopy the values you created for `NEXT_PUBLIC_BASIS_THEORY_PUBLIC_KEY` from [Step 2](../02-add-elements/).\n\n## Create a Public Application\nTo start, you'll need a new [Public Application](https://docs.basistheory.com/api-reference/#applications) using our PCI compliant template `Collect PCI Data` to be able to securely collect cardholder data. [Click here to create one.](https://portal.basistheory.com/applications/create?application_template_id=db9148c1-a55f-4164-b830-a20ab6d720ae)\n\nCopy the API KEY to the `.env.local` file as the `NEXT_PUBLIC_BASIS_THEORY_PUBLIC_KEY` value.\n\n## Create a Private Application\nNext, you need a new [Private Application](https://docs.basistheory.com/api-reference/#applications) using our PCI compliant template `Use PCI Tokens` to be able to securely send cardholder data via the [Basis Theory Proxy](https://developers.basistheory.com/concepts/what-is-the-proxy/). [Click here to create one.](https://portal.basistheory.com/applications/create?application_template_id=31efed55-035c-4b49-b1a1-609a728d91ce)\n\nCopy the API KEY to the `.env.local` file as the `BASIS_THEORY_PRIVATE_KEY` value.\n\n## Running\n\nRun the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\n## Key Integration Spots\n\n| File                                          | Description                                                              |\n| --------------------------------------------- | ------------------------------------------------------------------------ |\n| [`pages/index.js`](./pages/index.js)          | Initialize Basis Theory Elements                                         |\n| [`pages/card-form.js`](./pages/card-form.js) | Card form using CardElement and tokenizing the collected cardholder data |\n| [`pages/api/proxy.js`](./pages/api/proxy.js)  | Outbound call to using Basis Theory Proxy                                |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasis-theory-labs%2Fpci-blueprint-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasis-theory-labs%2Fpci-blueprint-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasis-theory-labs%2Fpci-blueprint-example/lists"}