{"id":21575509,"url":"https://github.com/rangle/stripe-shop-backend","last_synced_at":"2025-04-10T16:32:13.181Z","repository":{"id":40533920,"uuid":"254150387","full_name":"rangle/Stripe-shop-backend","owner":"rangle","description":"A starter kit for Stripe Payments running on AWS lambda's with DynamoDB. Implements a basic Catalog and payment. Support Terminal and Stripe Elements.","archived":false,"fork":false,"pushed_at":"2023-02-03T04:42:08.000Z","size":1204,"stargazers_count":8,"open_issues_count":8,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T14:13:10.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rangle.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}},"created_at":"2020-04-08T17:04:03.000Z","updated_at":"2023-11-08T03:54:36.000Z","dependencies_parsed_at":"2023-02-18T03:16:28.311Z","dependency_job_id":null,"html_url":"https://github.com/rangle/Stripe-shop-backend","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/rangle%2FStripe-shop-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2FStripe-shop-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2FStripe-shop-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2FStripe-shop-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/Stripe-shop-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252691,"owners_count":21072700,"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-24T12:13:29.417Z","updated_at":"2025-04-10T16:32:13.143Z","avatar_url":"https://github.com/rangle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe Integrations for Payment and Terminal using Serverless\n\nThis is a collection of lambda functions and DynamoDb tables that can be run locally using the Serverless framework\n\nDevelopers with AWS experience can also deploy this to their AWS account to add a custom domain name, deploy Lambda functions, store DynamoDB data and use CloudFront CDN.\n\n## Prerequisites\n\n- A Serverless Framework account\n- Serverless\n- Stripe CLI\n- Java\n\n## Getting Started\n\nThis project relies heavily on the Serverless framework.\n\nYou will need\n\n- A Serverless account\n- The Serverless CLI\n- An app in serverless (eg. `stripe-training`)\n\nFollow this guide to get started: https://serverless.com/framework/docs/getting-started/\n\nUpdate the serverless.yml file:\n\n```yaml\n# app and org for use with dashboard.serverless.com\napp: example_app #CHANGE THIS to the name of the App you created in Serverless\norg: example_org #CHANGE THIS\n\n...\n  environment:\n    ...\n    STRIPE_API_KEY: \"sk_test_OD123456\" # CHANGE THIS Your Stripe \"Secret key\"\n```\n\n### Installing\n\n- Clone this repo\n- `npm install`\n- `sls dynamodb install`\n\n### Running the application\n\n```\n npm run local\n```\n\nTest using Postman/Insomnia, note the url at the end of the deploy script and the Routes for each lambda.\n\n```text\n...\nServerless: Routes for getOrder:\nServerless: GET /orders/getOrder\nServerless: POST /{apiVersion}/functions/stripe-react-frontend-dev-getOrder/invocations\n\nServerless: Routes for createTerminalConnection:\nServerless: GET /terminal/connect\nServerless: POST /{apiVersion}/functions/stripe-react-frontend-dev-createTerminalConnection/invocations\n\nServerless: Routes for capturePaymentIntent:\nServerless: POST /terminal/capture\nServerless: POST /{apiVersion}/functions/stripe-react-frontend-dev-capturePaymentIntent/invocations\n\nServerless: Offline [HTTP] listening on http://localhost:15001\nServerless: Enter \"rp\" to replay the last request\n```\n\n## Capturing Stripe webhooks\n\nYou can recieve webhooks from Stripe to your local development environment using Stripe CLI\n\n### Install Stripe CLI\n\nFollow the instructions at https://stripe.com/docs/stripe-cli\n\n### Listen for webhooks\n\nListen for webhooks and redirect to your local development API.\n\n```yaml\nstripe listen --forward-to localhost:15001/webhook/listen\n```\n\nAny webhooks sent by Stripe should now show in the terminal and be picked up by `src/api/webhook/listen.ts`\n\nhttps://stripe.com/docs/stripe-cli/webhooks\n\n## Running the tests\n\n- Write then\n- Run them\n- Create a pull request\n- Much thanks!\n\n## Deployment - Advanced\n\nThis is an optional step for advanced AWS users who want to deploy the application remotely.\n\nUpload to AWS and run from your own domain, or the AWS domain provided.\n\n```text\nnpm run deploy\n```\n\nPopulate your Catalog with Items. As DynamoDb is dynamic - there's a lot of latitude for the type of items you have in your catalog.\n\n## Authors\n\n- **Ken Easson** - _Initial work_ - [Rangle.io](https://rangle.io)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n- Dave McDonald - _Overall project support_\n- José Guillén - _Serverless and AWS assistance_\n- Jason Santos - _Typescript and Code Review_\n- The many others at _Rangle.io_ that have helped me learn all this tech!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fstripe-shop-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Fstripe-shop-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fstripe-shop-backend/lists"}