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)