• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Adam Bergman

AWS Stripe Integration example in NodeJS

by

This example for Stripe integration using AWS Lambda and API Gateway.

  1. AWS Stripe Integration example in NodeJS

Stripe Integration Example

This example for Stripe integration using AWS Lambda and API Gateway.

Use Cases

  • Notified about events that happen in a Stripe account.

Setup

Install npm packages

$ npm install

Set your Stripe secret keys

Edit the environment block in serverless.yml with your Stripe secret keys:

provider:
  environment:
    STRIPE_TEST_SECRET_KEY: 'Stripe_Test_Secret_Key_here'
    STRIPE_LIVE_SECRET_KEY: 'Stripe_Live_Secret_Key_here'

Deploy!

$ serverless deploy

or production

$ serverless deploy --stage live
Deploying "aws-node-stripe-integration" to stage "test" (us-east-1)

✔ Service deployed to stack aws-node-stripe-integration-test (42s)

endpoint: POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/test/stripe/incoming
functions:
  incoming: aws-node-stripe-integration-test-incoming (1.2 kB)

Contents

  • Stripe Integration Example
  • Use Cases
  • Setup
  • Install npm packages
  • Set your Stripe secret keys
  • Deploy!

Related

GuidesPluginsExamplesSlack CommunitySupport