{"id":21169062,"url":"https://github.com/cosmicjs/stripe-charge-function","last_synced_at":"2026-05-15T08:02:37.128Z","repository":{"id":77502895,"uuid":"139277052","full_name":"cosmicjs/stripe-charge-function","owner":"cosmicjs","description":"Cosmic Function to charge a customer using Stripe.","archived":false,"fork":false,"pushed_at":"2018-09-06T20:30:52.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-09T04:08:59.598Z","etag":null,"topics":["javascript","nodejs","serverless"],"latest_commit_sha":null,"homepage":"https://cosmicjs.com/docs/functions","language":"HTML","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/cosmicjs.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":"2018-06-30T20:15:58.000Z","updated_at":"2019-05-03T08:44:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bd94a77-13d1-4d5f-95f1-38c6e530730d","html_url":"https://github.com/cosmicjs/stripe-charge-function","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmicjs/stripe-charge-function","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fstripe-charge-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fstripe-charge-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fstripe-charge-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fstripe-charge-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/stripe-charge-function/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fstripe-charge-function/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33058965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["javascript","nodejs","serverless"],"created_at":"2024-11-20T15:22:31.372Z","updated_at":"2026-05-15T08:02:37.111Z","avatar_url":"https://github.com/cosmicjs.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe Charge Function\n\u003cimg src=\"https://cosmic-s3.imgix.net/124843d0-7c94-11e8-9e7b-6d53b7000e38-stripe.png?w=1000\" width=\"300\" /\u003e\n\nCosmic Function that enables you to charge a customer using [Stripe](https://stripe.com).\n\n### Deploying the Function\n1. [Login to Cosmic JS](https://cosmicjs.com) and go to Your Bucket \u003e Settings \u003e Functions \u003e Example Functions\n2. Install the Stripe Charge Function\n3. Add your STRIPE_SECRET_KEY environment variable\n4. Deploy the function and get your endpoint\n\n### Testing the Endpoint\n1. Download code\n```\ngit clone https://github.com/cosmicjs/stripe-charge-function\n```\n2. Edit `test-checkout.html` to include the deployed Function endpoint and your Stripe public test key.\n3. Open `test-checkout.html` in the browser and attempt a [test charge](https://stripe.com/docs/testing).\n\n### Maintainence\nThat's it! No managing or maintaining a server, just code and deploy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fstripe-charge-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fstripe-charge-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fstripe-charge-function/lists"}